function _OverloadYield(t,e){this.v=t,this.k=e}function _applyDecoratedDescriptor(t,e,r,o,n){var i={};return Object.keys(o).forEach((function(t){i[t]=o[t]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,o){return o(t,e,r)||r}),i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(t,e,i),null):i}function _applyDecs2311(t,e,r,o,n,i){var a,s,c,l,d,p,u,_=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,y=Object.create,v=[y(null),y(null)],g=e.length;function m(e,r,o){return function(n,i){r&&(i=n,n=t);for(var a=0;a=0;k-=r?2:1){var L=h(y[k],"A decorator","be",!0),q=r?y[k-1]:void 0,T={},I={kind:["field","accessor","method","getter","setter","class"][n],name:o,metadata:a,addInitializer:function(t,e){if(t.v)throw new TypeError("attempted to call addInitializer after decoration was finished");h(e,"An initializer","be",!0),i.push(e)}.bind(null,T)};if(b)s=L.call(q,O,I),T.v=1,h(s,"class decorators","return")&&(O=s);else if(I.static=l,I.private=d,s=I.access={has:d?u.bind():function(t){return o in t}},E||(s.get=d?P?function(t){return _(t),C.value}:A("get",0,_):function(t){return t[o]}),P||S||(s.set=d?A("set",0,_):function(t,e){t[o]=e}),O=L.call(q,w?{get:C.get,set:C.set}:C[x],I),T.v=1,w){if("object"==typeof O&&O)(s=h(O.get,"accessor.get"))&&(C.get=s),(s=h(O.set,"accessor.set"))&&(C.set=s),(s=h(O.init,"accessor.init"))&&j.unshift(s);else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else h(O,(p?"field":"method")+" decorators","return")&&(p?j.unshift(O):C[x]=O)}return n<2&&c.push(m(j,l,1),m(i,l,0)),p||b||(d?w?c.splice(-1,0,A("get",l),A("set",l)):c.push(P?C[x]:h.call.bind(C[x])):f(t,o,C)),O}function w(t){return f(t,_,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[_]),a=y(null==a?null:a),d=[],p=function(t){t&&d.push(m(t))},u=function(e,o){for(var i=0;it.length)&&(e=t.length);for(var r=0,o=Array(e);r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _createForOfIteratorHelperLoose(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,o=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _decorate(t,e,r,o){var n=_getDecoratorsApi();if(o)for(var i=0;i=0;i--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,n[i])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&o.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;o--){var n=this.fromClassDescriptor(t),i=this.toClassDescriptor((0,e[o])(n)||n);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){t=i.elements;for(var a=0;a1){for(var a=Array(i),s=0;s=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;O(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:L(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}function set(t,e,r,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,o){var n,i=_superPropBase(t,e);if(i){if((n=Object.getOwnPropertyDescriptor(i,e)).set)return n.set.call(o,r),!0;if(!n.writable)return!1}if(n=Object.getOwnPropertyDescriptor(o,e)){if(!n.writable)return!1;n.value=r,Object.defineProperty(o,e,n)}else _defineProperty(o,e,r);return!0},set(t,e,r,o)}function _set(t,e,r,o,n){if(!set(t,e,r,o||t)&&n)throw new TypeError("failed to set property");return r}function _setFunctionName(t,e,r){"symbol"==typeof e&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _skipFirstGeneratorNext(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _superPropBase(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _superPropGet(t,e,r,o){var n=_get(_getPrototypeOf(1&o?t.prototype:t),e,r);return 2&o&&"function"==typeof n?function(t){return n.apply(r,t)}:n}function _superPropSet(t,e,r,o,n,i){return _set(_getPrototypeOf(i?t.prototype:t),e,r,o,n)}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(e=t.slice(0)),t.raw=e,t}function _tdz(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function _temporalRef(t,e){return t===_temporalUndefined?_tdz(e):t}function _temporalUndefined(){}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _toSetter(t,e,r){e||(e=[]);var o=e.length++;return Object.defineProperty({},"_",{set:function(n){e[o]=n,t.apply(r,e)}})}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _usingCtx(){var t="function"==typeof SuppressedError?SuppressedError:function(t,e){var r=Error();return r.name="SuppressedError",r.error=t,r.suppressed=e,r},e={},r=[];function o(t,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(t)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],t))var n=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");n&&(o=function(){try{n.call(e)}catch(t){return Promise.reject(t)}}),r.push({v:e,d:o,a:t})}else t&&r.push({d:e,a:t});return e}return{e:e,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var o,n=this.e,i=0;function a(){for(;o=r.pop();)try{if(!o.a&&1===i)return i=0,r.push(o),Promise.resolve().then(a);if(o.d){var t=o.d.call(o.v);if(o.a)return i|=2,Promise.resolve(t).then(a,s)}else i|=1}catch(t){return s(t)}if(1===i)return n!==e?Promise.reject(n):Promise.resolve();if(n!==e)throw n}function s(r){return n=n!==e?new t(r,n):r,a()}return a()}}}function _wrapAsyncGenerator(t){return function(){return new AsyncGenerator(t.apply(this,arguments))}}function AsyncGenerator(t){var e,r;function o(e,r){try{var i=t[e](r),a=i.value,s=a instanceof _OverloadYield;Promise.resolve(s?a.v:a).then((function(r){if(s){var c="return"===e?"return":"next";if(!a.k||r.done)return o(c,r);r=t[c](r).value}n(i.done?"return":"normal",r)}),(function(t){o("throw",t)}))}catch(t){n("throw",t)}}function n(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}(e=e.next)?o(e.key,e.arg):r=null}this._invoke=function(t,n){return new Promise((function(i,a){var s={key:t,arg:n,resolve:i,reject:a,next:null};r?r=r.next=s:(e=r=s,o(t,n))}))},"function"!=typeof t.return&&(this.return=void 0)}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,t)},_wrapNativeSuper(t)}function _wrapRegExp(){_wrapRegExp=function(t,e){return new r(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function r(t,o,n){var i=RegExp(t,o);return e.set(i,n||e.get(t)),_setPrototypeOf(i,r.prototype)}function o(t,r){var o=e.get(r);return Object.keys(o).reduce((function(e,r){var n=o[r];if("number"==typeof n)e[r]=t[n];else{for(var i=0;void 0===t[n[i]]&&i+1]+)>/g,(function(t,e){var r=i[e];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof n){var a=this;return t[Symbol.replace].call(this,r,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(o(t,a)),n.apply(this,t)}))}return t[Symbol.replace].call(this,r,n)},_wrapRegExp.apply(this,arguments)}function _writeOnlyError(t){throw new TypeError('"'+t+'" is write-only')}function _AwaitValue(t){this.wrapped=t}function old_createMetadataMethodsForProperty(t,e,r,o){return{getMetadata:function(n){old_assertNotFinished(o,"getMetadata"),old_assertMetadataKey(n);var i=t[n];if(void 0!==i)if(1===e){var a=i.public;if(void 0!==a)return a[r]}else if(2===e){var s=i.private;if(void 0!==s)return s.get(r)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(n,i){old_assertNotFinished(o,"setMetadata"),old_assertMetadataKey(n);var a=t[n];if(void 0===a&&(a=t[n]={}),1===e){var s=a.public;void 0===s&&(s=a.public={}),s[r]=i}else if(2===e){var c=a.priv;void 0===c&&(c=a.private=new Map),c.set(r,i)}else a.constructor=i}}}function old_convertMetadataMapToFinal(t,e){var r=t[Symbol.metadata||Symbol.for("Symbol.metadata")],o=Object.getOwnPropertySymbols(e);if(0!==o.length){for(var n=0;n=0;g--){var m;void 0!==(_=old_memberDec(v[g],o,l,s,c,n,i,a,u))&&(old_assertValidReturnValue(n,_),0===n?m=_:1===n?(m=old_getInit(_),f=_.get||u.get,y=_.set||u.set,u={get:f,set:y}):u=_,void 0!==m&&(void 0===d?d=m:"function"==typeof d?d=[d,m]:d.push(m)))}if(0===n||1===n){if(void 0===d)d=function(t,e){return e};else if("function"!=typeof d){var h=d;d=function(t,e){for(var r=e,o=0;o3,g=f>=5;if(g?(p=e,u=o,0!=(f-=5)&&(_=a=a||[])):(p=e.prototype,u=r,0!==f&&(_=i=i||[])),0!==f&&!v){var m=g?c:s,h=m.get(y)||0;if(!0===h||3===h&&4!==f||4===h&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!h&&f>2?m.set(y,f):m.set(y,!0)}old_applyMemberDec(t,p,d,y,f,g,v,u,_)}}old_pushInitializers(t,i),old_pushInitializers(t,a)}function old_pushInitializers(t,e){e&&t.push((function(t){for(var r=0;r0){for(var n=[],i=e,a=e.name,s=o.length-1;s>=0;s--){var c={v:!1};try{var l=Object.assign({kind:"class",name:a,addInitializer:old_createAddInitializerMethod(n,c)},old_createMetadataMethodsForProperty(r,0,a,c)),d=o[s](i,l)}finally{c.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}t.push(i,(function(){for(var t=0;t=0;g--){var m;void 0!==(_=e(v[g],i,d,l,a,s,c,u))&&(o(a,_),0===a?m=_:1===a?(m=_.init,f=_.get||u.get,y=_.set||u.set,u={get:f,set:y}):u=_,void 0!==m&&(void 0===p?p=m:"function"==typeof p?p=[p,m]:p.push(m)))}if(0===a||1===a){if(void 0===p)p=function(t,e){return e};else if("function"!=typeof p){var h=p;p=function(t,e){for(var r=e,o=0;o3,v=_>=5;if(v?(p=e,0!=(_-=5)&&(u=a=a||[])):(p=e.prototype,0!==_&&(u=o=o||[])),0!==_&&!y){var g=v?c:s,m=g.get(f)||0;if(!0===m||3===m&&4!==_||4===m&&3!==_)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!m&&_>2?g.set(f,_):g.set(f,!0)}n(t,p,d,f,_,v,y,u)}}i(t,o),i(t,a)}(s,e,r),function(e,r,n){if(n.length>0){for(var i=[],a=r,s=r.name,c=n.length-1;c>=0;c--){var l={v:!1};try{var d=n[c](a,{kind:"class",name:s,addInitializer:t(i,l)})}finally{l.v=!0}void 0!==d&&(o(10,d),a=d)}e.push(a,(function(){for(var t=0;t=0;m--){var h;void 0!==(f=e(g[m],i,d,l,a,s,c,_))&&(o(a,f),0===a?h=f:1===a?(h=f.init,y=f.get||_.get,v=f.set||_.set,_={get:y,set:v}):_=f,void 0!==h&&(void 0===p?p=h:"function"==typeof p?p=[p,h]:p.push(h)))}if(0===a||1===a){if(void 0===p)p=function(t,e){return e};else if("function"!=typeof p){var b=p;p=function(t,e){for(var r=e,o=0;o3,v=_>=5;if(v?(p=t,0!=(_-=5)&&(u=o=o||[])):(p=t.prototype,0!==_&&(u=r=r||[])),0!==_&&!y){var g=v?c:s,m=g.get(f)||0;if(!0===m||3===m&&4!==_||4===m&&3!==_)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!m&&_>2?g.set(f,_):g.set(f,!0)}n(i,p,d,f,_,v,y,u)}}return a(i,r),a(i,o),i}function a(t,e){e&&t.push((function(t){for(var r=0;r0){for(var n=[],i=e,a=e.name,s=r.length-1;s>=0;s--){var c={v:!1};try{var l=r[s](i,{kind:"class",name:a,addInitializer:t(n,c)})}finally{c.v=!0}void 0!==l&&(o(10,l),i=l)}return[i,function(){for(var t=0;t=0;w--){var S;void 0!==(g=r(b[w],a,u,d,s,c,l,y,p))&&(n(s,g),0===s?S=g:1===s?(S=g.init,m=g.get||y.get,h=g.set||y.set,y={get:m,set:h}):y=g,void 0!==S&&(void 0===_?_=S:"function"==typeof _?_=[_,S]:_.push(S)))}if(0===s||1===s){if(void 0===_)_=function(t,e){return e};else if("function"!=typeof _){var E=_;_=function(t,e){for(var r=e,o=0;o3,m=y>=5,h=r;if(m?(_=t,0!=(y-=5)&&(f=n=n||[]),g&&!i&&(i=function(e){return _checkInRHS(e)===t}),h=i):(_=t.prototype,0!==y&&(f=o=o||[])),0!==y&&!g){var b=m?d:l,w=b.get(v)||0;if(!0===w||3===w&&4!==y||4===w&&3!==y)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!w&&y>2?b.set(v,y):b.set(v,!0)}a(s,_,u,v,y,m,g,f,h)}}return c(s,o),c(s,n),s}function c(t,e){e&&t.push((function(t){for(var r=0;r0){for(var o=[],i=e,a=e.name,s=r.length-1;s>=0;s--){var c={v:!1};try{var l=r[s](i,{kind:"class",name:a,addInitializer:t(o,c)})}finally{c.v=!0}void 0!==l&&(n(10,l),i=l)}return[i,function(){for(var t=0;t=0;P-=r?2:1){var A=g[P],C=r?g[P-1]:void 0,j={},x={kind:["field","accessor","method","getter","setter","class"][n],name:o,metadata:i,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");c(e,"An initializer","be",!0),s.push(e)}.bind(null,j)};try{if(h)(v=c(A.call(C,E,x),"class decorators","return"))&&(E=v);else{var O,k;x.static=d,x.private=p,p?2===n?O=function(t){return y(t),b.value}:(n<4&&(O=a(b,"get",y)),3!==n&&(k=a(b,"set",y))):(O=function(t){return t[o]},(n<2||4===n)&&(k=function(t,e){t[o]=e}));var L=x.access={has:p?f.bind():function(t){return o in t}};if(O&&(L.get=O),k&&(L.set=k),E=A.call(C,_?{get:b.get,set:b.set}:b[S],x),_){if("object"==typeof E&&E)(v=c(E.get,"accessor.get"))&&(b.get=v),(v=c(E.set,"accessor.set"))&&(b.set=v),(v=c(E.init,"accessor.init"))&&w.push(v);else if(void 0!==E)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else c(E,(u?"field":"method")+" decorators","return")&&(u?w.push(E):b[S]=E)}}finally{j.v=!0}}return(u||_)&&l.push((function(t,e){for(var r=w.length-1;r>=0;r--)e=w[r].call(t,e);return e})),u||h||(p?_?l.push(a(b,"get"),a(b,"set")):l.push(2===n?b[S]:a.call.bind(b[S])):Object.defineProperty(t,o,b)),E}function d(t,e){return Object.defineProperty(t,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:e})}if(arguments.length>=6)var p=i[Symbol.metadata||Symbol.for("Symbol.metadata")];var u=Object.create(null==p?null:p),_=function(t,e,r,o){var n,i,a=[],c=function(e){return _checkInRHS(e)===t},d=new Map;function p(t){t&&a.push(s.bind(null,t))}for(var u=0;u3,g=16&f,m=!!(8&f),h=0==(f&=7),b=y+"/"+m;if(!h&&!v){var w=d.get(b);if(!0===w||3===w&&4!==f||4===w&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);d.set(b,!(f>2)||f)}l(m?t:t.prototype,_,g,v?"#"+y:_toPropertyKey(y),f,o,m?i=i||[]:n=n||[],a,m,v,h,1===f,m&&v?c:r)}}return p(n),p(i),a}(t,e,n,u);return r.length||d(t,u),{e:_,get c(){var e=[];return r.length&&[d(l(t,[r],o,t.name,5,u,e),u),s.bind(null,e,t)]}}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function _classCheckPrivateStaticAccess(t,e,r){return _assertClassBrand(e,t,r)}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _classExtractFieldDescriptor(t,e){return _classPrivateFieldGet2(e,t)}function _classPrivateFieldDestructureSet(t,e){var r;return _classApplyDescriptorDestructureSet(t,_classPrivateFieldGet2(e,t))}function _classPrivateFieldGet(t,e){var r;return _classApplyDescriptorGet(t,_classPrivateFieldGet2(e,t))}function _classPrivateFieldSet(t,e,r){var o;return _classApplyDescriptorSet(t,_classPrivateFieldGet2(e,t),r),r}function _classPrivateMethodGet(t,e,r){return _assertClassBrand(e,t),r}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}function _classStaticPrivateFieldDestructureSet(t,e,r){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorDestructureSet(t,r)}function _classStaticPrivateFieldSpecGet(t,e,r){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"get"),_classApplyDescriptorGet(t,r)}function _classStaticPrivateFieldSpecSet(t,e,r,o){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorSet(t,r,o),o}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _defineEnumerableProperties(t,e){for(var r in e){var o=e[r];o.configurable=o.enumerable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r,o)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),i=0;i0;)try{var i=t.pop(),a=i.d.call(i.v);if(i.a)return Promise.resolve(a).then(o,n)}catch(t){return n(t)}if(r)throw e}function n(t){return e=r?new dispose_SuppressedError(e,t):t,r=!0,o()}return o()}function _objectSpread(t){for(var e=1;e7?(window.tStoreInit[t]="lazy",new IntersectionObserver((function(r,o){r.forEach((function(r){if(r.isIntersecting){var n=r.target;o.unobserve(n),"lazy"===window.tStoreInit[t]&&(t_store_lazyInit(t,e),window.tStoreInit[t]=!0)}}))}),{rootMargin:"150px 0px"}).observe(r)):t_store_lazyInit(t,e))}function t_store_lazyInit(t,e){var r=e,o=document.getElementById("rec"+t),n;document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))||t_store_initRouting(),window.tStoreDict||t_store_getDictObj();var i=o.querySelector(".js-store"),a=t_store_get_productPopup_html(t,r);i&&i.insertAdjacentHTML("beforeend",a);var s=document.getElementById("allrecords").getAttribute("data-tilda-mode");r.isPublishedPage="edit"!==s&&"preview"!==s,r.isPublishedPage&&t_store_checkUrl(r,t);var c=document.getElementById("record"+t),l;if(c&&!r.isPublishedPage&&"y"==c.getAttribute("off"))return;var d=o.querySelector(".js-store-grid-cont-preloader");if(""!==r.storepart){setTimeout((function(){d&&d.classList.remove("t-store__grid-cont-preloader_hidden")}),1e3);var p=1,u=t_store_paramsToObj(t,r),_;if(u[t]&&(_=t_store_updateOptionsBasedOnUrl(r,u,t))&&(r=_),r.sidebar){var f=o.querySelector(".js-store-parts-select-container"),y;if(f)f.querySelector(".t951__sidebar")||f.insertAdjacentHTML("afterbegin",'
')}var v=function e(){u[t]&&u[t].page&&(p=Array.isArray(u[t].page)?u[t].page.join(""):u[t].page),t_store_loadProducts("",t,r,p),t_store_mobileHoriz_checkBtnVisibility(t,r)},g=function e(){u[t]&&_&&o.addEventListener("controlsDrawn",(function(){t_store_filters_render_selected(r,t)})),r.sidebar&&o.addEventListener("controlsDrawn",(function(){t_store_filters_opts_sort(r,t)})),p=1,v()},m=function e(r){if(window.tStoreFilters||(window.tStoreFilters={}),r&&(r.filters&&r.filters.length>0||r.search||r.sort)){window.tStoreFilters[t]=r;var o=t_store__getRootZone(),n="tilda-catalog-filters-1.0";if(document.head.querySelector('script[src*="'+n+'"]'))t_store_onFuncLoad("t_store_filters_init",(function(){g()}));else{var i=document.createElement("script");i.type="text/javascript",i.src="https://static.tildacdn."+o+"/js/"+n+".min.js",i.onload=g,i.onerror=function(){console.error("Failed to load tilda-catalog-filters: ",this.src),v()},document.head.appendChild(i)}if(!document.head.querySelector('link[href*="'+n+'"]')){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.href="https://static.tildacdn."+o+"/css/"+n+".min.css",a.media="all",document.head.appendChild(a)}t_store__loadJSFile("https://static.tildacdn."+o+"/js/tilda-tooltip-1.0.min.js"),t_store__loadCSSFile("https://static.tildacdn."+o+"/css/tooltipster.min.css")}else v()},h,b,w;if(t_store_loadFilters(r,m,(function(t){t_store_changeEndpoint(t,(function(){t_store_loadFilters(r,m)}))})),r.isHorizOnMob){var S=t_store_get_handIcon_html(t,r.horizontalScrollHint);d&&d.insertAdjacentHTML("beforebegin",S)}r.tabs&&(h="tilda-catalog-tabs-1.0",document.head.querySelector('script[src*="'+h+'"]')||((b=document.createElement("script")).type="text/javascript",b.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+h+".min.js",b.onerror=function(){console.error("Failed to load tilda-catalog-tabs: ",this.src)},document.head.appendChild(b)),document.head.querySelector('link[href*="'+h+'"]')||((w=document.createElement("link")).rel="stylesheet",w.type="text/css",w.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+h+".min.css",w.media="all",document.head.appendChild(w))),r.showPagination&&"on"===r.showPagination&&(h="tilda-catalog-pagination-1.0",document.head.querySelector('script[src*="'+h+'"]')||((b=document.createElement("script")).type="text/javascript",b.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+h+".min.js",b.onerror=function(){console.error("Failed to load tilda-catalog-pagination: ",this.src)},document.head.appendChild(b)),document.head.querySelector('link[href*="'+h+'"]')||((w=document.createElement("link")).rel="stylesheet",w.type="text/css",w.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+h+".min.css",w.media="all",document.head.appendChild(w))),window.addEventListener("resize",t_throttle((function(){o&&(r.prodCard&&"1025"==r.prodCard.blockId?t_store_unifyCardsWidth(t):t_store_unifyCardsHeights(t,r),t_store_loadMoreBtn_display(t),(r.sidebar||Object.keys(r.filters||{}).length>1)&&t_store_moveSearhSort(t,r),r.showPagination&&"on"===r.showPagination&&t_store_onFuncLoad("t_store_pagination_display",(function(){t_store_pagination_display(t)})))})));var E=o.querySelector(".t-store");E&&E.addEventListener("displayChanged",(function(){setTimeout((function(){t_store_unifyCardsHeights(t,r)}))})),E&&E.addEventListener("displayChanged",(function(){setTimeout((function(){t_store_unifyCardsWidth(t)}))}));try{r.verticalAlignButtons&&(window.addEventListener("resize",t_throttle((function(){t_store_verticalAlignButtons(t,r)}),500)),E&&E.addEventListener("displayChanged",(function(){t_store_verticalAlignButtons(t,r)})))}catch(A){console.error("verticalAlignButtons error: "+A)}r.popup_opts.fixedButton&&t_store_fixedPopupButton(t,r)}else if(d.style.display="none",r.sidebar){var P=o.querySelector(".t951__grid-cont");P&&P.classList.remove("t951__grid-cont_hidden")}}function t_store_history_pushState(t,e,r){try{void 0!==history.pushState&&window.history.pushState(t,e,r)}catch(o){console.error(o)}}function t_store_productInit(t,e,r){t_store_snippet_initProduct(t,e,r)}function t_store_snippet_initProduct(t,e,r){var o=document.querySelector("#rec"+t),n=o.querySelector(".t-store__product-snippet.js-store-product");n.setAttribute("data-card-size","large");var i=t_store_snippet_getJsonFromUrl();if("100"===e.popup_opts.popupContainer){var a=n.querySelector(".t-container");a.classList.add("t-container_fluid"),a.style.maxWidth="100%",a.firstElementChild&&a.firstElementChild.classList.add("t-container_fluid")}t_store_snippet_copyTypographyToSnippet(t,e),t_store_drawProdPopup_drawGallery(t,n,r,e);var s=function o(){t_store_addProductOptions(t,r,n,e,"largecard"),t_store_snippet_chooseEditionFromUrl(t,r,n,e),t_store_onFuncLoad("t_prod__init",(function(){t_prod__init(t)}))},c=document.getElementById("allrecords");if(c){var l=c.getAttribute("data-tilda-project-lang");l&&(window.tStoreBrowserLang=l)}window.tStoreDict||t_store_getDictObj();var d=n.querySelector(".js-store-prod-sku");if(d&&"none"!==d.style.display&&d.insertAdjacentHTML("beforebegin",window.tStoreDict.sku+": "),n.setAttribute("data-product-gen-uid",r.uid),n.setAttribute("data-product-part-uid",r.partuids?r.partuids.join(","):""),e.tabs){var p="tilda-catalog-tabs-1.0";if(document.head.querySelector('script[src*="'+p+'"]'))t_onFuncLoad("t_store_tabs_initSnippet",(function(){t_store_tabs_initSnippet(t,e,n,r),s()}));else{var u=document.createElement("script");u.type="text/javascript",u.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+p+".min.js",u.onload=function(){t_onFuncLoad("t_store_tabs_initSnippet",(function(){t_store_tabs_initSnippet(t,e,n,r),s()}))},u.onerror=function(){console.error("Failed to load tilda-catalog-tabs: ",this.src)},document.head.appendChild(u)}if(!document.head.querySelector('link[href*="'+p+'"]')){var _=document.createElement("link");_.rel="stylesheet",_.type="text/css",_.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+p+".min.css",_.media="all",document.head.appendChild(_)}}else t_store_initTextAndCharacteristics(n,r),s();if(t_store_triggerEvent(document.body,"twishlist_addbtn"),!e.relevants_slider){var f=o.querySelector(".t-store__relevants-grid-cont.t-store__grid-cont_mobile-one-row");if(f){var y=t_store_get_handIcon_html(t,e.horizontalScrollHint);f.insertAdjacentHTML("beforebegin",y)}}e.popup_opts.fixedButton&&t_store_fixedPopupButton(t,e),t_store_applyButtonStyles(t,e),t_store_renderSnippetButtonIcon(t,e),t_store_hoverZoom_init(t),t_store_get_productPopup_closeIcon_color(t,e),setTimeout((function(){!window.tStoreIsSearchBot&&window.Tilda&&"function"==typeof Tilda.sendEcommerceEvent&&(i.editionuid?r.editions.forEach((function(t){t.uid===i.editionuid&&Tilda.sendEcommerceEvent("detail",[{id:""+t.uid,uid:""+t.uid,price:""+t.price,sku:t.sku?t.sku:"",name:r.title}])})):Tilda.sendEcommerceEvent("detail",[{id:""+(r.id?r.id:r.uid),uid:""+r.uid,price:""+(r.price_min?r.price_min:r.price),sku:r.sku?r.sku:"",name:r.title}]))}),3e3)}function t_store_initRouting(){window.onpopstate=function(){if(window.history.state&&window.history.state.productData){var t=window.history.state.productData,e,r,o,n;t_store_openProductPopup(t.recid,t.opts,t.productObj,t.isRelevantsShow)}}}function t_store_getSnippetMainButton(t){var e=document.getElementById("rec"+t);return e?e.querySelector(".t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn"):null}function t_store_buildBaseButtonCssRules(t,e){var r=[];Object.keys(t).forEach((function(o){var n=t[o],i=e[o];i&&("bgcolor"===o?t_store_isGradient(i)?(t_store_addRule(r,"background-image",i),t_store_addRule(r,"background-color","transparent")):(t_store_addRule(r,"background-color",i),t_store_addRule(r,"background-image","none")):t_store_addRule(r,n,i))}));var o=e.bordersize||"0",n=e.bordercolor||"transparent";return(e.bordersize||e.bordercolor)&&(/^0($|[^0-9])/i.test(o)||"0px"===o?t_store_addRule(r,"border","none"):t_store_addRule(r,"border",o+" solid "+n)),t_store_addRule(r,"transition-duration",e.speedhover||"0.2s"),t_store_addRule(r,"transition-property","background-color, color, border-color, box-shadow, opacity, transform"),t_store_addRule(r,"transition-timing-function","ease-in-out"),e.bgcolor&&e.bgcolorhover&&(t_store_isGradient(e.bgcolorhover)?t_store_addRule(r,"--button-after-background-image-hover",e.bgcolorhover):t_store_addRule(r,"--button-after-background-color-hover",e.bgcolorhover)),r}function t_store_buildHoverCssRules(t){var e=[];if(t.colorhover&&t_store_addRule(e,"color",t.colorhover),t.shadowhover&&t_store_addRule(e,"box-shadow",t.shadowhover),t.bordersize||t.bordercolorhover){var r=t.bordersize||"0",o=t.bordercolorhover||"transparent";/^0($|[^0-9])/i.test(r)||"0px"===r?t_store_addRule(e,"border","none"):t_store_addRule(e,"border",r+" solid "+o)}return e}function t_store_buildMobileCssRules(t,e){var r="_res_480",o=[];return Object.keys(e).forEach((function(n){if(n.includes(r)){var i=n.replace(r,""),a=t[i];a&&t_store_addRule(o,a,e[n])}})),e.padding_res_480&&t_store_addRule(o,"padding",e.padding_res_480),o}function t_store_createMainButtonCss(t,e){var r="hover",o="#rec"+t+" .t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn",n=o+"{"+e.baseRules.join("")+"}";return e.hoverRules.length&&(n+="\n"+o+":"+r+"{"+e.hoverRules.join("")+"}"),e.mobileRules.length&&(n+="\n@media screen and (max-width:480px){"+o+"{"+e.mobileRules.join("")+"}}"),n}function t_store_createСssStyleTag(t,e){var r=document.getElementById(t);r||((r=document.createElement("style")).id=t,(document.head||document.documentElement).appendChild(r)),r.styleSheet?r.styleSheet.cssText=e:r.textContent=e}function t_store_applyButtonStyles(t,e){try{if(!e||!e.button_styles)return;var r=JSON.parse(e.button_styles),o=t_store_getSnippetMainButton(t);if(!o)return;o.removeAttribute("style");var n={color:"color",bgcolor:"background-color",radius:"border-radius",wrap:"white-space",shadow:"box-shadow",fontweight:"font-weight",uppercase:"text-transform",fontsize:"font-size",fontfamily:"font-family",lineheight:"line-height",letterspacing:"letter-spacing",gap:"gap",padding:"padding"},i,a,s,c=t_store_createMainButtonCss(t,{baseRules:t_store_buildBaseButtonCssRules(n,r),hoverRules:t_store_buildHoverCssRules(r),mobileRules:t_store_buildMobileCssRules(n,r)});if(r.bgcolor&&r.bgcolorhover&&(c=t_store_appendMainButtonBgHoverStyle(c)),t_store_createСssStyleTag("js-store-btn-styles-"+t,c),!o.parentNode)return;o.parentNode.style.opacity=1}catch(l){console.error("Ошибка при применениии стилей к кнопке (refactored): "+l)}}function t_store_renderSnippetButtonIcon(t,e){try{var r=e.buttonicon,o=e.buttoniconhover;if(!r&&!o)return;var n=t_store_getSnippetMainButton(t);if(!n)return;var i=document.createElement("span");i.className="t-btnflex__icon";var a="";r&&(a+='--icon:url("'+r.replace(/"/g,""")+'");\n',r.includes("/lib/icons/button/")&&i.classList.add("t-btnflex__icon_default_glyph")),o&&(i.classList.add("t-btnflex__icon_has_hover"),a+='--icon-hover:url("'+o.replace(/"/g,""")+'");\n',o.includes("/lib/icons/button/")&&i.classList.add("t-btnflex__icon_hover_glyph")),a&&i.setAttribute("style",a),n.insertAdjacentElement("afterbegin",i)}catch(s){console.error("Ошибка при рендере иконки в кнопке: "+s)}}function t_store_createCssProperty(t,e){return t+": "+e+";"}function t_store_addRule(t,e,r){null!=r&&""!==r&&t.push(t_store_createCssProperty(e,r))}function t_store_isGradient(t){return"string"==typeof t&&-1!==t.indexOf("gradient")}function t_store_appendMainButtonBgHoverStyle(t){return t+"\n\t\t\n\n\t\t@media (hover: hover) {\n\t\t\t.t-store__prod-snippet__container .t-store__prod-popup__btn:hover {\n\t\t\t\tanimation-name: t-button-hover-animation;\n\t\t\t\tanimation-duration: 0s;\n\t\t\t\tanimation-fill-mode: forwards;\n\t\t\t\tanimation-delay: 1s;\n\t\t\t\tanimation-timing-function: linear;\n\t\t\t}\n\t\t}\n\t"}function t_store_verticalAlignButtons(t,e){var r=document.getElementById("rec"+t);if(r){var o=r.querySelector(".js-store-grid-cont");o&&o.classList.add("t-store__valign-buttons");var n=r.querySelectorAll(".js-store-grid-cont .t-store__card__textwrapper"),i=0,a=parseInt(e.blocksInRow,10),s=window.innerWidth<=480,c=window.innerWidth<=960&&window.innerWidth>480,l=!!(window.innerWidth<=960&&r.querySelector(".js-store-grid-cont.t-store__grid-cont_mobile-one-row")),d=!!(window.innerWidth<=480&&r.querySelector(".t-store__mobile-two-columns"));s&&(a=1),c&&(a=2),d&&(a=2),l&&(a=999999);var p=1,u=[];if(n&&Array.prototype.forEach.call(n,(function(t){t.style.height="unset",1===a?t.style.height="auto":(u.push(t),t.offsetHeight>i&&(i=t.offsetHeight),Array.prototype.forEach.call(u,(function(t){t.style.height=i+"px"})),p===a&&(p=0,i=0,u=[]),p++)})),e.showRelevants){var _=r.querySelectorAll(".js-product-relevant .t-store__card__textwrapper"),f=0,y=[];Array.prototype.forEach.call(_,(function(t){t.style.height="unset"})),Array.prototype.forEach.call(_,(function(t){y.push(t),t.offsetHeight>f&&(f=t.offsetHeight),Array.prototype.forEach.call(y,(function(t){t.style.height=f+"px"}))}))}}}function t_store_hoverZoom_init(t){var e="https://static.tildacdn."+t_store__getRootZone()+"/js/tilda-hover-zoom-1.0.min.js",r;window.tStoreIsMobile||document.getElementById("rec"+t).querySelector("[data-hover-zoom]")&&t_store__loadJSFile(e,(function(){t_hoverZoom_init(t)}))}function t_store_loadProducts(t,e,r,o,n){window.tStoreProductsRequested=!0;var i="relevants"===t,a=Date.now(),s=r.storepart,c=!o||1===parseInt(o,10),l=document.getElementById("rec"+e);if(l){var d=i?l.querySelector(".js-store-relevants-grid-cont"):l.querySelector(".js-store-grid-cont"),p="973"===l.getAttribute("data-record-type"),u;i?(u={storepartuid:s,productuid:n.currentProductUid,quantity:n.relevantsQuantity,method:n.relevantsMethod,sort:n.relevantsSort},(d=l.querySelector(".t-store__relevants-grid-cont"))&&(d.style.opacity=0)):u={storepartuid:s,recid:e,c:a},c&&(u.getparts=!0,u.getoptions=!0),o&&(u.slice=o),r.filters&&(u.filters=r.filters,u.getparts=!0),r.sort&&!i&&(u.sort=r.sort),r.size&&r.size>0&&(u.size=r.size),r&&r.defaultSort&&r.defaultSort.in_stock&&i&&(u.filters||(u.filters={}),u.filters.quantity="y");var _="https://"+window.t_store_endpoint+"/api"+(i?"/getrelevantproducts/":"/getproductslist/");if(!r.isPublishedPage){var f=window.location.hostname.split("."),y="tilda."+f[f.length-1];u.projectid=document.getElementById("allrecords").getAttribute("data-tilda-project-id"),_="https://"+y+"/projects/store"+(i?"/getrelevantproducts/":"/getproductslist/")}var v=Date.now();window.tStoreXHR||(window.tStoreXHR={}),window.tStoreXHR[e]&&(window.tStoreXHR[e].abort(),delete window.tStoreXHR[e]);var g=new XMLHttpRequest;window.tStoreXHR[e]=g,g.onload=function(){if(g.readyState===g.DONE&&200===g.status){var a=g.responseText;if(t_store__handleRootzoneRedirect(g.responseText,_))return void t_store_loadProducts(t,e,r,o,n);clearTimeout(l.getAttribute("data-preloader-timeout"));var s=l.querySelector(".js-store-grid-cont-preloader");if(s&&(s.style.display="none"),r.sidebar){var u=l.querySelector(".t951__grid-cont");u&&u.classList.remove("t951__grid-cont_hidden")}if(c&&d&&(d.innerHTML=""),"string"==typeof a&&"{"!==a.substring(0,1)&&(-1!==a.indexOf("ERROR:")||-1!==a.indexOf("Wrong"))){var f=t_store_get_errorBox(r,a);return d.insertAdjacentHTML("beforeend",f),void t_store__fadeIn(l.querySelector(".js-store-error-msg"))}if(""===a)return;var y={};try{(y=JSON.parse(a)).partlinks&&(r.linksSizeChart=y.partlinks)}catch(R){console.error(R)}if("object"!=typeof y)return;var v=i?y.relevants:y.products;if(y.options&&y.options.length>=1&&(window.tStoreOptionsList=y.options),t_store_process(v,e,r,!!o,i,y),y.parts&&y.parts.length>1&&!l.querySelector(".js-store-parts-switcher")&&!r.hideStoreParts){var m=function t(){t_store_onFuncLoad("t_store_addStoreParts",(function(){t_store_addStoreParts(e,r,y.parts),t_store_setActiveStorePart(e)}))},h="tilda-catalog-filters-1.0";if(document.head.querySelector('script[src*="'+h+'"]'))m();else{var b=document.createElement("script");b.type="text/javascript",b.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+h+".min.js",b.onload=m,b.onerror=function(){console.error("Failed to load tilda-catalog-filters: ",this.src)},document.head.appendChild(b)}if(!document.head.querySelector('link[href*="'+h+'"]')){var w=document.createElement("link");w.rel="stylesheet",w.type="text/css",w.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+h+".min.css",w.media="all",document.head.appendChild(w)}}window.tStoreFilters||(window.tStoreFilters={});var a=window.tStoreFilters[e];if("y"===y.filter&&!r.hideFilters&&a)a&&(a.filters&&a.filters.length>0||a.search||a.sort)&&t_store_onFuncLoad("t_store_filters_init",(function(){t_store_filters_init(e,r,a),i||t_store_filters_prodsNumber_update(l,r,y)}));else if(r.sidebar&&!i&&y.parts&&0===y.parts.length){var S=l.querySelector(".t951__sidebar");if(S){S.classList.add("t951__sidebar_empty");var E="RU"===window.tStoreBrowserLang?'Пожалуйста, добавьте хотя бы один фильтр каталога для отображения боковой панели магазина. Справка':'Please add at least one catalog filter to display the store sidebar';S.innerHTML=''+E+""}}if(t_store_isQueryInAddressBar("tstore")&&window.t_store__scrollToBlock){var P=decodeURI(window.location.hash).split("/"),A=P.indexOf("r")+1,C;P[A]===e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:0,top:l.getBoundingClientRect().top+window.pageYOffset-50,behavior:"smooth"}):window.scrollTo(0,l.getBoundingClientRect().top+window.pageYOffset-50),window.t_store__scrollToBlock=null)}var j=l.querySelector(".js-store-load-more-btn");j&&j.classList.remove("t-btn_sending");var x=t_throttle((function(){if(!window.tStoreProductsRequested&&window.innerWidth<960){var t=d.scrollWidth,e=d.scrollLeft,r;d.offsetWidth+e+20>t&&"none"!==j.style.display&&(j.click(),d.removeEventListener("scroll",x))}})),O=d&&d.classList.contains("t-store__grid-cont_mobile-one-row");if(y.nextslice){if(!j){var k;if(j=t_store_get_loadMoreBtn_html(l,r),r.sidebar)l.querySelector(".t951__cont-w-filter .t951__cont-wrapper + .t-store__pagination")||l.querySelector(".t951__cont-w-filter").insertAdjacentHTML("beforeend",j);else if(!i){var L=l.querySelector(".js-store-grid-cont");L&&L.insertAdjacentHTML("afterend",j)}j=l.querySelector(".js-store-load-more-btn")}if(j){j.style.display="";var q=function t(){window.tStoreProductsRequested||(j.classList.add("t-btn_sending"),t_store_loadProducts("",e,r,y.nextslice))};j.parentNode.replaceChild(j.cloneNode(!0),j),(j=l.querySelector(".js-store-load-more-btn")).addEventListener("click",q)}O&&d.addEventListener("scroll",x)}else i||(j&&(j.style.display="none"),d&&d.removeEventListener("scroll",x));if(r.showPagination&&"on"===r.showPagination&&!i&&t_store_onFuncLoad("t_store_pagination_draw",(function(){t_store_pagination_draw(e,r,o,y.total)})),O){var T=document.getElementById("allrecords").getAttribute("data-tilda-mode");d&&"edit"!==T&&"preview"!==T&&("y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||t_store_onFuncLoad("t_lazyload_update",(function(){d.addEventListener("scroll",t_throttle((function(){t_lazyload_update()})))})))}if(i){l.querySelector(".t-store__relevants-grid-cont").style.opacity=1;var I=4;r.relevants_slider&&(v.length>4||window.innerWidth<=960)&&t_store_onFuncLoad("t_sldsInit",(function(){t_sldsInit(e+" .js-store-relevants-grid-cont")}))}p&&!i&&t_store_onFuncLoad("t_sldsInit",(function(){t_sldsInit(e+" .js-store-grid-cont")})),r.verticalAlignButtons&&t_store_verticalAlignButtons(e,r),r.verticalAlignButtons&&("complete"===document.readyState?t_store_verticalAlignButtons(e,r):window.addEventListener("load",(function(){t_store_verticalAlignButtons(e,r)}))),r.itemsAnim&&r.previewmode&&t_store_onFuncLoad("t_animate__startAnimation",(function(){t_animate__startAnimation()})),d.style.height="",t_store_triggerEvent(document.body,"twishlist_addbtn"),t_store_triggerEvent(d,"tStoreRendered"),window.tStoreProductsRequested=!1}},g.ontimeout=m,g.onerror=m,g.open("GET",_+"?"+t_store__serializeData(u)),g.timeout=2e4,g.send()}function m(i){if(-1!==window.t_store_endpoint.indexOf("store.tilda"))t_store_changeEndpoint(i,(function(){t_store_loadProducts(t,e,r,o,n)}));else{var a=l.querySelector(".js-store-load-more-btn");a&&a.classList.remove("t-btn_sending");var s=Date.now()-v;0===g.status&&s<100&&console.error("Request error (get store products). Please check internet connection..."),window.tStoreProductsRequested=!1;var c=l.querySelector(".js-store-grid-cont-preloader");c&&(c.style.display="none");var p=t_store_get_errorBox(r,'Request timeout (40s). Please check internet connection and reload the page. If the situation has not changed, please contact support team@tilda.cc.');d.insertAdjacentHTML("beforeend",p),t_store__fadeIn(l.querySelector(".js-store-error-msg"))}}}function t_store_loadOneProduct(t,e,r,o,n){var i=Date.now(),a,s={storepartuid:e.storepart,recid:t,productuid:r,c:i},c="https://"+window.t_store_endpoint+"/api/getproduct/?"+t_store__serializeData(s),l=new XMLHttpRequest;function d(t){console.error("Can't get product with uid = "+r+" in storepart = "+e.storepart),"function"==typeof n&&n(t)}l.onload=function(){if(l.readyState===l.DONE&&200===l.status){if(t_store__handleRootzoneRedirect(l.responseText,c))return void t_store_loadOneProduct(t,e,r,o,n);o()}},l.ontimeout=d,l.onerror=d,l.open("GET",c),l.timeout=2e4,l.send()}function t_store_loadProducts_byId(t,e,r,o){var n=Date.now(),i={productsuid:t,c:n},a="https://"+window.t_store_endpoint+"/api/getproductsbyuid/";if(e&&!e.isPublishedPage){i.projectid=document.getElementById("allrecords").getAttribute("data-tilda-project-id");var s=window.location.hostname.split("."),c="tilda."+s[s.length-1];a="https://"+c+"/projects/store/getproductsbyuid/"}i=JSON.stringify(i);var l=new XMLHttpRequest;function d(e){console.error("Can't get getproductsbyuid. Requesting idArr: "+t),"function"==typeof o&&o(e)}l.onload=function(){if(l.readyState===l.DONE&&200===l.status){if("string"==typeof l.responseText&&"{"===l.responseText.substring(0,1)||console.error("Can't get products array by uid list"),t_store__handleRootzoneRedirect(l.responseText,a))return void t_store_loadProducts_byId(t,e,r,o);r(JSON.parse(l.responseText))}},l.ontimeout=d,l.onerror=d,l.open("POST",a),l.timeout=2e4,l.send(i)}function t_store_loadFilters(t,e,r){var o=Date.now(),n,i={storepartuid:t.storepart,c:o},a=document.getElementById("allrecords");t&&t.defaultSort&&t.defaultSort.in_stock&&(i.filters||(i.filters={}),i.filters.quantity="y");var s="https://"+window.t_store_endpoint+"/api/getfilters/";if(!t.isPublishedPage){a&&(i.projectid=a.getAttribute("data-tilda-project-id"));var c=window.location.hostname.split("."),l="tilda."+c[c.length-1];s="https://"+l+"/projects/store/getfilters/"}var d=new XMLHttpRequest;function p(e){console.error("Can't get filters in storepart = "+t.storepart),"function"==typeof r&&r(e)}d.onload=function(){if(d.readyState===d.DONE&&200===d.status){if(t_store__handleRootzoneRedirect(d.responseText,s))return void t_store_loadFilters(t,e,r);try{e(JSON.parse(d.responseText))}catch(o){console.error(o),e()}}},d.ontimeout=p,d.onerror=p,d.open("GET",s+"?"+t_store__serializeData(i)),d.timeout=2e4,d.send()}function t_store_process(t,e,r,o,n,i){var a=document.getElementById("rec"+e);if(a){var s=a.querySelector(".js-store-grid-cont");if(s){var c="973"===a.getAttribute("data-record-type"),l=r.prodCard&&"1025"===r.prodCard.blockId,d=r.prodCard&&!!r.prodCard.hasWrap,p=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"));n&&(s=a.querySelector(".js-store-relevants-grid-cont"));var u=t_store_get_horizSeparator_html(r),_={},f=s.querySelectorAll(".t-store__card").length;if(0===t.length){var y=t_store_get_emptyMsg_html(r);return s.insertAdjacentHTML("beforeend",y),void t_store__fadeIn(a.querySelector(".js-store-empty-part-msg"))}if(n&&r.prodCard){var v=r.prodCard.shadowSize,g=r.prodCard.shadow,m=r.prodCard.shadowHover,h=r.prodCard.shadowSizeHover,b=r.prodCard.shadowOpacityHover,w=r.prodCard.shadowShiftyHover,S=parseInt(v,10)||0;S=Math.min(S,10);var E=h?parseInt(h,10):20;E=Math.min(E,40);var P=b?parseInt(b,10)/100:.3,A=g||m?20:Math.max(E,S),C="";if(m)C="box-shadow: "+m+" !important;";else if(h||b){var j,x;C="box-shadow: 0px "+({sm:10,md:20}[w]||0)+"px "+E+"px rgba(0,0,0,"+P+") !important;"}var O="";C&&d&&(O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-store__card__wrap_all:hover {",O+=C,O+="}\n"),(S||h||g||m)&&(O+="@media screen and (max-width:960px) {\n",O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-store__card__wrap_all {\n",O+="margin: "+A+"px;\n",O+="}\n",O+="}\n",O+="@media screen and (min-width:961px) {\n",O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-slds__items-wrapper .t-slds__item {\n",O+="padding-top: "+A+"px;\n",O+="padding-bottom: "+A+"px;\n",O+="}\n",O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants__title-wrapper .t-store__relevants__title {\n",O+="margin-bottom: "+(40-A)+"px;\n",O+="}\n",O+="}\n");var k=a.querySelector(".t-store__product-snippet + .t-store__relevants__container");if(O){O="";var L=a.querySelector(".t-popup .t-store__relevants__container");L&&L.insertAdjacentHTML("beforebegin",O),p&&k&&k.insertAdjacentHTML("beforebegin",O)}p&&k&&r.isFlexCols&&k.classList.add("t-store__grid-cont_col-width_stretch")}var q="",T=4,I=n?4:r.blocksInRow,R;if(n&&r.relevants_slider&&(t.length>4||window.innerWidth<=960)||!n&&c){var z="",D="300";"fast"===r.slider_opts.anim_speed&&(z="t-slds_animated-fast"),"slow"===r.slider_opts.anim_speed&&(z="t-slds_animated-slow",D="500"),q+='",M&&n&&(q+=M)}if(t_store_process_appendAndShowProducts(a,s,q),-1===q.indexOf('data-animate-style="fadeinleft"')||s.classList.contains("t-store__grid-cont_mobile-one-row")||(s.style.overflowX="hidden"),Array.prototype.forEach.call(t,(function(t){var o=t,i=n?a.querySelector('.t-store__relevants__container .js-product.t-item[data-product-gen-uid="'+o.uid+'"]'):a.querySelector('.t-store__grid-cont .js-product.t-item[data-product-gen-uid="'+o.uid+'"]'),s;i.setAttribute("data-card-size","small"),o=_[o.uid],parseInt(o.quantity,10)<=0||"both"!==r.showStoreBtnQuantity&&"list"!==r.showStoreBtnQuantity||t_store_addProductQuantity(i,o,r),t_store_addProductOptions(e,o,i,r),t_store_option_handleOnChange(i),t_store_option_handleOnChange_custom(e,i,r),t_store_onFuncLoad("t_prod__initProduct",(function(){t_prod__initProduct(i,r)}))})),!n&&window.tStoreFilters&&"object"==typeof window.tStoreFilters&&window.tStoreFilters[e]&&"object"==typeof window.tStoreFilters[e]&&window.tStoreCustomUrlParams&&"object"==typeof window.tStoreCustomUrlParams&&window.tStoreCustomUrlParams[e]&&"object"==typeof window.tStoreCustomUrlParams[e]&&Array.prototype.forEach.call(t,(function(t){var r=a.querySelector('.t-store__grid-cont .js-product.t-item[data-product-gen-uid="'+t.uid+'"]');Array.prototype.forEach.call(r.querySelectorAll(".js-product-edition-option"),(function t(r){var o=r.querySelector("select");if(o){var n=window.tStoreCustomUrlParams[e];if(n)for(var i=0,a=Object.keys(n);i');if("y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||(r.relevants_slider?setTimeout((function(){t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}),100):t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))),document.querySelector(".t706__cartwin")||document.querySelector(".t706__sidebar")?"function"==typeof tcart__addEvent__links&&tcart__addEvent__links(e):console.warn("Warning: cart block is not added to this page"),t_store_initPopup(e,_,r,n,i),"1025"==r.prodCard.blockId?setTimeout((function(){t_store_unifyCardsWidth(e)}),1e3):(setTimeout((function(){t_store_unifyCardsHeights(e,r),r.verticalAlignButtons&&t_store_verticalAlignButtons(e,r)}),1),document.fonts&&document.fonts.ready?document.fonts.ready.then((function(){setTimeout((function(){t_store_unifyCardsHeights(e,r)}),1e3)})):setTimeout((function(){t_store_unifyCardsHeights(e,r)}),1e3),r.verticalAlignButtons&&("complete"===document.readyState?t_store_verticalAlignButtons(e,r):window.addEventListener("load",(function(){t_store_verticalAlignButtons(e,r)})))),!r.previewmode)try{window.tp__record__addEditFieldEvents(e)}catch(N){console.error(N.message)}}}}function t_store_process_appendAndShowProducts(t,e,r){e.insertAdjacentHTML("beforeend",r),!0===t.getAttribute("data-already-loaded-first-products")?setTimeout((function(){Array.prototype.forEach.call(t.querySelectorAll(".t-store__card"),(function(t){t.classList.remove("t-store__card_hidden")}))}),10):(Array.prototype.forEach.call(t.querySelectorAll(".t-store__card"),(function(t){t.classList.remove("t-store__card_hidden")})),t.setAttribute("data-already-loaded-first-products",!0))}function t_store_mobileHoriz_checkBtnVisibility(t,e){var r=function t(e,r){var o=document.getElementById("rec"+e),n;window.innerWidth<960&&r.hasMobileHorizScroll&&t_store__removeElement(o.querySelector(".js-store-load-more-btn"))};r(t,e),window.addEventListener("resize",t_throttle((function(){r(t,e)}),500))}function t_store_get_productPopup_html(t,e){var r="",o=e.popup_opts.popupStat?'data-track-popup="'+e.popup_opts.popupStat+'"':"",n=e.popup_opts.overlayBgColorRgba?'style="background-color:'+e.popup_opts.overlayBgColorRgba+'"':"",i="t-popup__container t-popup__container-static ",a=e.verticalAlignButtons?"t-store__valign-buttons":"",s=e.showRelevants,c=e.titleRelevants?e.titleRelevants:window.tStoreDict.seeAlso,l=e.relevants_slider?"":"t-store__grid-cont_mobile-one-row";e.popup_opts.isVertical&&(i+="t-store__popup-container_8-cols ");var d="",p=e.popup_opts.isVertical?"":"t-store__prod-popup__col-left t-col t-col_"+e.popup_opts.columns,u,_="t-align_"+("center"===e.popup_opts.align?"center":"left")+" "+(e.popup_opts.isVertical?"":"t-store__prod-popup__col-right t-col t-col_"+e.popup_opts.columns2),f="js-store-product js-product t-store__product-popup ";e.popup_opts.containerBgColor&&(d+="background-color:"+e.popup_opts.containerBgColor+";"),"100"===e.popup_opts.popupContainer&&(d+="max-width:100%;",f+="t-container_fluid "),r+='
",r+=t_store_get_productPopup_closeIcon_html(e),r+=t_store_get_productPopup_closeText_html(e),r+='
',r+="
",r+='
',r+='
';var y=[];return"100"===e.popup_opts.popupContainer&&y.push("t-container_fluid"),r+=y.length?'
':"
",r+='
',r+='
',r+=t_store_get_productPopup_titleText_html(),r+='
',r+=t_store_get_productPopup_onePrice_html(e,"current"),r+=t_store_get_productPopup_onePrice_html(e,"old"),r+="
",r+='
',r+=t_store_get_productPopup_linksSizeChart_html(),r+=t_store_get_productPopup_buyBtn_html(e),r+=t_store_get_productPopup_text_html(),r+="
",r+="
",r+="
",s&&(r+='
',r+='
',r+='
"+c+"
",r+="
",e.relevants_slider||(r+=t_store_get_handIcon_html(t,e.horizontalScrollHint)),r+='
',r+="
"),r+="
",r+="
",r+="
",r+="
"}function t_store_get_productPopup_text_html(){var t="";return t+='
'}function t_store_get_productPopup_linksSizeChart_html(){var t="";return t+=''}function t_store_get_productPopup_buyBtn_html(t){var e=document.getElementById("button_buy_"+t.recid),r;return e&&e.content?'\n\t\t
\n\t\t\t'+e.content.cloneNode(!0).firstElementChild.outerHTML+"\n\t\t
\n\t":t_store_get_productPopup_buyBtn_html_legacy(t)}function t_store_get_productPopup_buyBtn_html_legacy(t){var e="",r=t.btn1_style,o=t.popup_opts.btnTitle;return""!==o&&(e+='"),e}function t_store_get_productPopup_onePrice_html(t,e){var r="",o="current"===e?"js-store-prod-price t-store__prod-popup__price":"js-store-prod-price-old t-store__prod-popup__price_old",n=Object.prototype.hasOwnProperty.call(t.price,"fontWeight")&&Object.prototype.hasOwnProperty.call(t.price,"fontSize"),i,a="",s="current"===e?t.price.color:t.price.colorOld,c=t.popup_opts.containerBgColor;0===Math.abs(t_store_getLightnessColor(s)-t_store_getLightnessColor(c))&&(s=t_store_luma_rgb(c),n||(a+=s?"color:"+s+";":"")),n&&(a+=s?"color:"+s+";":"",a+=t.price.fontWeight?"font-weight:"+t.price.fontWeight+";":""),i=""!==a?'style = "'+a+'"':"";var l=t.currencyTxt?'
'+t.currencyTxt+"
":"",d="current"===e?"js-product-price js-store-prod-price-val":"js-store-prod-price-old-val";return r+='
",r+="r"!==t.currencySide&&l?l:"",r+='
',r+="r"===t.currencySide&&l?l:"",r+="
"}function t_store_get_productPopup_titleText_html(){var t="";return t+='
',t+='
',t+='
',t+='
',t+=window.tStoreDict.sku+": ",t+='',t+="",t+="
",t+="
"}function t_store_get_productPopup_closeIcon_html(t){var e="",r=t.popup_opts.iconColor?t.popup_opts.iconColor:"#000000",o=t.popup_opts.overlayBgColorRgba?t_store_removeRgbOpacity(t.popup_opts.overlayBgColorRgba):t.popup_opts.containerBgColor,n=o&&o.length?o:"#ffffff",i;t.popup_opts.overlayBgColorRgba&&!t.popup_opts.iconColor&&(r=t_store_luma_rgb(t_store_removeRgbOpacity(t.popup_opts.overlayBgColorRgba)));return e+='
',e+='
',e+='',e+='',e+="",e+=' ',e+=' ',e+=' ',e+=' ',e+=" ",e+=" ",e+="
",e+="
"}function t_store_get_productPopup_closeIcon_color(t,e){var r=e.popup_opts.iconColor?e.popup_opts.iconColor:"#000000",o=e.popup_opts.overlayBgColorRgba?t_store_removeRgbOpacity(e.popup_opts.overlayBgColorRgba):e.popup_opts.containerBgColor,n=o&&o.length?o:"#ffffff",i;e.popup_opts.overlayBgColorRgba&&!e.popup_opts.iconColor&&(r=t_store_luma_rgb(i=t_store_removeRgbOpacity(e.popup_opts.overlayBgColorRgba)));var a=document.getElementById("rec"+t),s=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),c=s?a.querySelector(".t-store__prod-snippet__container"):a.querySelector(".t-popup"),l;c.querySelector(".t-popup__close").style.backgroundColor=n;var d=c.querySelector(".t-popup__close-icon_cross"),p;s&&!e.popup_opts.iconColor&&Math.abs(t_store_getLightnessColor(r)-t_store_getLightnessColor(t_store_removeRgbOpacity(n)))>.1?(i=t_store_removeRgbOpacity(e.popup_opts.containerBgColor)||"rgb(255,255,255)",d.querySelector("g").setAttribute("fill",t_store_luma_rgb(i))):d.querySelector("g").setAttribute("fill",r),c.querySelector(".t-popup__close-icon_arrow").querySelector("path").setAttribute("fill",r)}function t_store_get_productPopup_closeText_html(t){if(!t.popup_opts.closeText)return"";var e=t_store_unescapeHtml(t.popup_opts.closeText),r=t.popup_opts.iconColor?t.popup_opts.iconColor:"#000000",o=t.popup_opts.containerBgColor&&t.popup_opts.containerBgColor.length?t.popup_opts.containerBgColor:"#ffffff",n;t.popup_opts.containerBgColor&&!t.popup_opts.iconColor&&(r=t_store_luma_rgb(t_store_hexToRgb(o)));var i,a="";return a+='
',a+='
",a+=e,a+="
",a+="
"}function t_store_get_loadMoreBtn_html(t,e){var r=document.getElementById("button_loadmore_"+e.recid);if(!r||!r.content)return t_store_get_loadMoreBtn_html_legacy(t,e);var o=r.content.cloneNode(!0),n=o.querySelector(".js-store-load-more-btn-text"),i,a;return n&&(n.textContent=window.tStoreDict.loadmore),'\n\t\t
\n\t\t\t'+o.firstElementChild.outerHTML+"\n\t\t
\n\t"}function t_store_get_loadMoreBtn_html_legacy(t,e){var r="",o,n,i;return r+='
',r+='
',r+='
'+window.tStoreDict.loadmore+"
",r+="
",r+="
"}function t_store_get_handIcon_html(t,e){var r=document.getElementById("rec"+t),o="rgba(190,190,190,0.3)",n="rgba(190,190,190,1)",i="rgba(190,190,190,0.3)",a="mix-blend-mode: multiply;",s,c=r.getAttribute("data-bg-color"),l,d,p,u;(c&&(s=-1!==c.indexOf("-gradient(")?t_store_getFirstColorFromGradient(c):t_store_hexToRgb(c)),document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))&&(s=r.style.backgroundColor),s)&&("white"===t_store_luma_rgb(s)&&(a="mix-blend-mode: lighten;",o="rgba(255,255,255,0.2)",n="rgba(255,255,255,1)",i="rgba(255,255,255,0.2)"));return"hand"!==e&&e?"circle"===e?'
':"":'
'}function t_store_get_emptyMsg_html(t){var e="",r=t.typo.titleColor?"color:"+t.typo.titleColor+";border-color:"+t.typo.titleColor+";":"",o="js-store-empty-part-msg t-store__empty-part-msg-cont";return e+='"}function t_store_get_errorBox(t,e){var r="",o=t.typo.titleColor?"color:"+t.typo.titleColor+";border-color:"+t.typo.titleColor+";":"",n="js-store-error-msg t-store__error-msg-cont";return r+="\x3c!--googleoff: all--\x3e",r+="\x3c!--noindex--\x3e",r+='",r+="\x3c!--/noindex--\x3e",r+="\x3c!--googleon: all--\x3e"}function t_store_get_productCard_html(t,e,r,o,n,i){var a=o?"t-col t-col_3":r.colClass,s=t_store_product_getFirstAvailableEditionData(e.editions),c="",l="left"===r.align?"t-align_left":"t-align_center",d=r.itemsAnim&&r.previewmode?"t-animate":"";if(window.tStoreIsMobile){var p=navigator.connection||navigator.mozConnection||navigator.webkitConnection;p&&("slow-2g"!==p.effectiveType&&"2g"!==p.effectiveType&&"3g"!==p.effectiveType||(d=""))}var u=r.itemsAnim?'data-animate-style="'+r.itemsAnim+'" data-animate-chain="yes" ':"",_=s.quantity&&parseInt(s.quantity,10)<=0,f='data-product-inv="'+(s.quantity||"")+'" ',y="1025"===r.prodCard.blockId,v=r.prodCard.btnLink1,g=t_store_get_productCard_link(v,e,o,t),m=t_store_get_productCard_targetAttr(v,e),h={open:r.previewmode?'":"",close:r.previewmode?"":""};(_&&"#order"===g||!document.querySelector(".t706__cartwin")&&!document.querySelector(".t706__sidebar")&&"#order"===g)&&(h.open="",h.close="");var b="";o&&(b="js-product-relevant");var w=4,S=e.pack_label,E=e.pack_m,P=e.pack_x,A=e.pack_y,C=e.pack_z,j=parseInt(n,10)+1,x="973"===t.getAttribute("data-record-type")&&!o,O=o&&r.relevants_slider&&(i.length>4||window.innerWidth<=960);(O||x)&&(c+='
',c+='
');var k=e.url||"",L="";y&&("2"===r.prodCard.style?L+=" t-store__card_in-row":"3"===r.prodCard.style?L+=" t-store__card_under-description":L+=" t-store__card_in-column",L+=r.prodCard.hasSeparator?"":" t-store__card_no-separator",L+=parseInt(r.rightColumnWidth,10)?" t-store__card_fixed-width":"",L+=r.verticalAlign?" t-store__card_verticalAlign_"+r.verticalAlign:"");var q=[];try{q=JSON.parse(e.partuids)}catch(T){console.error(T)}return c+='
',r.prodCard.hasWrap?c+=t_store_get_productCard_wrapperStructure(e,s,r,h,o,t):c+=y&&!o?t_store_get_productCard_horizontalStructure(e,s,r,h,o,t):t_store_get_productCard_simpleStructure(e,s,r,h,o,t),c+="
",(O||x)&&(c+="
",c+="
"),c}function t_store_get_productCard_simpleStructure(t,e,r,o,n,i){var a=r.prodCard&&r.prodCard.showOpts?"":'style="display:none;"',s=t_store_get_productCard_img_html(t,r),c="";return c+=o.open,c+=" "+s,c+=" "+t_store_get_productCard_txtAndPrice_html(t,e,r,s),c+=o.close,c+='
",c+=t_store_get_productCard_btn_html(t,r,n,i)}function t_store_get_productCard_wrapperStructure(t,e,r,o,n,i){var a="",s=t_store_get_productCard_getWrapperStylesStr(r),c=r.prodCard&&r.prodCard.showOpts?"":'style="display:none;"',l;return a+='
',a+=" "+o.open,a+=" "+t_store_get_productCard_img_html(t,r),a+=" "+o.close,a+='
',a+='
',a+=" "+o.open,a+=" "+t_store_get_productCard_txtAndPrice_html(t,e,r),a+=" "+o.close,a+='
",a+="
",a+=" "+t_store_get_productCard_btn_html(t,r,n,i),a+="
",a+="
"}function t_store_get_productCard_getWrapperStylesStr(t){var e="";e+=t.prodCard.bgColor?"background-color:"+t.prodCard.bgColor+";":"",e+=t.prodCard.borderRadius?"border-radius:"+parseInt(t.prodCard.borderRadius,10)+"px;":"";var r=t.prodCard.shadowOpacity,o=t.prodCard.shadowSize,n=t.prodCard.shadow,i="";return n?i="box-shadow:"+n+";":(r||o)&&(r=r?parseInt(r,10)/100:.3,i="box-shadow: 0px 0px "+(o=o?parseInt(o,10):10)+"px rgba(0,0,0,"+r+");"),e+=i}function t_store_get_productCard_img_html(t,e,r){var o="1025"===e.prodCard.blockId;if(o&&!e.prodCard.hasImg)return"";var n="",i=e.hasOriginalAspectRatio&&!e.isHorizOnMob?"t-store__card__imgwrapper_original-ratio":"",a="t-store__card__imgwrapper ",s;if(a+=o?e.imageRatioClass:i+(e.isFlexCols?" "+e.imageRatioClass:""),document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))&&!e.colWidth){var c={1:760,2:560,3:360,4:260};e.colWidth=c[e.blocksInRow]}var l=!e.imageHeight||e.isFlexCols||o?"":"padding-bottom:"+100*parseInt(e.imageHeight,10)/(e.colWidth||360)+"%;";if(e.hasOriginalAspectRatio&&e.prodCard.borderRadius){var d=parseInt(e.prodCard.borderRadius,10);l+="border-radius:"+d+"px "+d+"px 0px 0px; overflow: hidden;"}var p=t_store_get_productCard_imgElHover_html(t,e,r),u=e.imageHover&&p,_,f=r||t_store_getProductFirstImg(t);if(""!==(f=f.replace(/&amp;/,"&"))){var y;if(e.hasOriginalAspectRatio)(_=document.createElement("img")).classList.add("js-product-img"),_.classList.add("t-store__card__img"),u&&_.classList.add("t-store__card__img_hover"),/Version\/16\.3 Safari/.test(navigator.userAgent)&&(_.style.objectFit="contain"),_.classList.add("t-img"),_.setAttribute("data-original",f),_.src=t_store_getLazySrc(e,f);else(_=document.createElement("div")).classList.add("js-product-img"),_.classList.add("t-store__card__bgimg"),u&&_.classList.add("t-store__card__bgimg_hover"),_.classList.add("t-bgimg"),_.setAttribute("data-original",f),_.style.backgroundImage='url("'+t_store_getLazyUrl(e,f)+'")',t_store_get_productCard_getImgStyles(_,e);if(1===t.editions.length){var v=t_store_product_getFirstAvailableEditionData(t.editions);v.uid&&_.setAttribute(e.hasOriginalAspectRatio?"imgfield":"bgimgfield","st_gallery__"+v.uid+":::0")}return n+='
',n+=" "+t_store_get_productCard_mark_html(t,e),n+=" "+_.outerHTML,n+=" "+(e.imageHover?p:""),n+="
"}return""}function t_store_get_productCard_img_replaceWith(t,e,r,o){var n=e.querySelector(".t-store__card__imgwrapper"),i=t_store_get_productCard_img_html(t,r,o);n&&(n.outerHTML=i),t_store_popup_updateLazyLoad(),t_store_triggerEvent(document.body,"twishlist_addbtn")}function t_store_get_productCard_imgElHover_html(t,e,r){if(t.gallery&&"["===t.gallery[0]){var o=JSON.parse(t.gallery);if(void 0!==o[1]){var n=o[1].img,i,a;if(r&&r.length)for(var s=0;s0&&!window.tStoreIsMobile&&(t.style.top="-2px")}}function t_store_get_productCard_mark_html(t,e){if(!t.mark)return"";var r="";r+=e.markColor?"color:"+e.markColor+";":"";var o,n="";return n+='
',n+='
",n+=t.mark,n+="
",n+="
"}function t_store_get_productCard_txtAndPrice_html(t,e,r,o){var n="",i;return n+='
",n+=t_store_get_productCard_txt_html(t,e,r),Object.prototype.hasOwnProperty.call(r.price,"position")&&""!==r.price.position||(n+=t_store_get_productCard_Price_html(t,e,r)),n+="
"}function t_store_get_productCard_txt_html(t,e,r){var o="",n;if(Object.prototype.hasOwnProperty.call(r.price,"position")&&"at"===r.price.position&&(o+=t_store_get_productCard_Price_html(t,e,r)),t.title){n=4===parseInt(r.blocksInRow,10)?"t-name_xs":2===parseInt(r.blocksInRow,10)?"t-name_xl":"t-name_md";var i=1===t.editions.length&&e.uid?'field="st_title__'+e.uid+'" data-redactor-toolbar="no"':"";o+='
",o+=t.title,o+="
"}if(Object.prototype.hasOwnProperty.call(r.price,"position")&&"bt"===r.price.position&&(o+=t_store_get_productCard_Price_html(t,e,r)),e.sku){var a,s,c='style="'+(r.prodCard.showOpts?"":"display:none;")+(r.typo.descrColor?"color:"+r.typo.descrColor+";":"")+'"',l=1===t.editions.length&&e.uid?'field="st_sku__'+e.uid+'" data-redactor-toolbar="no"':"";o+='
",o+=window.tStoreDict.sku+": ",o+='",o+=e.sku,o+="",o+="
"}if(t.descr){var d=1===t.editions.length&&e.uid?'field="st_descr__'+e.uid+'" data-redactor-toolbar="no"':"";o+='
",o+=t.descr,o+="
"}return o}function t_store_get_productCard_Price_html(t,e,r){var o="",n="",i=t_store__getFormattedPriceRange(r,t);return Object.prototype.hasOwnProperty.call(r.price,"position")&&("at"===r.price.position?n=" t-store__card__price-wrapper_above-title":"bt"===r.price.position&&(n=" t-store__card__price-wrapper_below-title")),o+='
',o+=t_store_get_productCard_onePrice_html(t,e,r,"current"),i||(o+=t_store_get_productCard_onePrice_html(t,e,r,"old")),o+="
"}function t_store_get_productCard_onePrice_html(t,e,r,o){var n="current"===o?e.price:e.priceold,i=t_store__getFormattedPrice(r,n),a=r.price.priceRange,s=t_store__getFormattedPriceRange(r,t);s&&"range"===a&&(i=s);var c="current"===o?"price":"priceold",l="",d="current"===o?"t-store__card__price":"t-store__card__price_old",p,u="",_;if(u+=n&&"0"!==n&&"0.0000"!==n?"":"display: none;",Object.prototype.hasOwnProperty.call(r.price,"fontWeight")&&Object.prototype.hasOwnProperty.call(r.price,"fontSize")){var f="current"===o?r.price.color:r.price.colorOld;u+=f?"color:"+f+";":"",u+=r.price.fontSize?"font-size:"+r.price.fontSize+";":"",u+=r.price.fontWeight?"font-weight:"+r.price.fontWeight+";":""}p=""!==u?'style = "'+u+'"':"";var y=1===t.editions.length&&e.uid?'field="st_'+c+"__"+e.uid+'" data-redactor-toolbar="no"':"",v=r.currencyTxt?'
'+r.currencyTxt+"
":"",g="current"===o?"js-product-price js-store-prod-price-val":"js-store-prod-price-old-val",m;if(s&&(g+=" js-store-prod-price-range-val"),l+='
",s&&"from"===a){l+='
"+window.tStoreDict.from+"
";var h=t_store__getFormattedMinPrice(r,t);null!==h&&(i=h)}return l+="r"!==r.currencySide&&v?v:"",l+='
"+i+"
",l+="r"===r.currencySide&&v?v:"",t.unit&&t.portion>0&&(l+='
/',"1"!==t.portion&&(l+=+t.portion+" "),l+=window.tStoreDict[t.unit]+"
"),l+="
"}function t_store_get_productCard_btn_html(t,e,r,o){var n=document.getElementById("button_cardfirst_"+e.recid),i=document.getElementById("button_cardsecond_"+e.recid);if(!(n&&n.content||i&&i.content))return t_store_get_productCard_btn_html_legacy(t,e,r,o);var a="1025"===e.prodCard.blockId,s="";if(n&&n.content){var c=t_store_get_productCard_link(e.prodCard.btnLink1,t,r,o),l=t_store_get_productCard_targetAttr(e.prodCard.btnLink1,t),d=n.content.cloneNode(!0).firstElementChild;d.setAttribute("href",c.replaceAll("&","&")),l&&d.setAttribute("target","_blank"),s=a?'\n\t\t\t\t
\n\t\t\t\t\t'+d.outerHTML+"\n\t\t\t\t
\n\t\t\t":d.outerHTML}var p="";if(i&&i.content){var u=t_store_get_productCard_link(e.prodCard.btnLink2,t,r,o),_=t_store_get_productCard_targetAttr(e.prodCard.btnLink2,t),f=i.content.cloneNode(!0).firstElementChild;f.setAttribute("href",u.replaceAll("&","&")),_&&f.setAttribute("target","_blank"),p=a?'\n\t\t\t\t
\n\t\t\t\t\t'+f.outerHTML+"\n\t\t\t\t
\n\t\t\t":f.outerHTML}return'\n\t\t
\n\t\t\t'+s+p+"\n\t\t
\n\t"}function t_store_get_productCard_btn_html_legacy(t,e,r,o){if(!e.prodCard.btnTitle1&&!e.prodCard.btnTitle2)return"";var n="1025"===e.prodCard.blockId,i="",a,s,c="sm"===e.btnSize?"t-btn_xs":"t-btn_sm";return i+='
',e.prodCard.btnTitle1&&(n&&(i+='
'),i+=''+e.prodCard.btnTitle1+"",n&&(i+="
")),e.prodCard.btnTitle2&&(n&&(i+='
'),i+=''+e.prodCard.btnTitle2+"",n&&(i+="
")),i+="
"}function t_store_get_productCard_link(t,e,r,o){var n;if(o[0]&&(document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))&&"popup"===t))return t_store_generateUrl(e);if("order"===t)return"#order";if(r)return e.buttonlink?e.buttonlink:"#prodpopup";if("popup"===t){if(e.buttonlink){var i=e.buttonlink;return-1===i.indexOf("//")&&"/"!==i.slice(0,1)&&"#"!==i.slice(0,1)&&(i="http://"+i),i}return"#prodpopup"}return"#prodpopup"}function t_store_get_productCard_targetAttr(t,e){return"popup"===t&&e.buttonlink&&"_blank"===e.buttontarget?'target="_blank"':""}function t_store_get_horizSeparator_html(t){var e='
';return e=e.replace("[[style]]",t.vindent?'style="margin-bottom:'+t.vindent+';"':"")}function t_store_unifyCardsHeights(t,e){if(e.prodCard&&e.prodCard.hasWrap){var r=document.getElementById("rec"+t);r&&[".t-store__grid-cont .t-store__card",".t-popup__container .t-store__card"].forEach((function(t){var o=r.querySelectorAll(t);if(o){var n=t_store_unifyCardsHeights_getBlocksInRow(e,o),i=r.querySelector(".t-store__card__wrap_txt-and-btns");if(window.innerWidth<=480&&!e.isHorizOnMob&&i)return void(i.style.height="auto");for(var a=0;as&&(s=u)}for(var _=0;_i&&(i=c)}if(o){var l=Math.ceil(parseFloat(window.getComputedStyle(o).width));l>a&&(a=l)}}else{var d=Math.ceil(parseFloat(window.getComputedStyle(e).width));d>n&&(n=d)}})),Array.prototype.forEach.call(o,(function(t){var e=t.querySelector(".t-store__card__price-buttons");if(e)if(e.classList.contains("t-store__card__price-buttons_in-row")){var r=e.querySelector(".t-store__card__price-wrapper"),o=e.querySelector(".t-store__card__btns-wrapper");r&&(r.style.width=i+"px"),o&&(o.style.width=a+"px"),e.style.width=i+a+"px"}else e.style.width=n+"px"}))}}}}function t_store_initPopup(t,e,r,o,n){o||(window.urlBeforePopupOpen=window.location.href,window.titleBeforePopupOpen=document.title);var i=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),a=document.getElementById("rec"+t);for(var s in e){var c=o?a.querySelector('.js-product-relevant[data-product-gen-uid="'+s+'"]'):a.querySelector('[data-product-gen-uid="'+s+'"]'),l=c.querySelectorAll('[href^="#prodpopup"]');Array.prototype.forEach.call(l,(function(a){var s=c.closest(".js-product"),l=s.getAttribute("data-product-gen-uid"),d=e[l];d&&a.setAttribute("href",d.url);var p=function i(a){if(a.preventDefault(),!a.target.closest(".t1002__addBtn")){s=this.closest(".js-product"),l=s.getAttribute("data-product-gen-uid"),d=e[l];var c=a.ctrlKey,p=a.metaKey&&-1!==navigator.platform.indexOf("Mac");c||p?window.open(d.url):(n.header||n.footer)&&n.disablepopup?location.href=d.url:t_store_openProductPopup(t,r,d,o,!1,!!o)}};i||a.addEventListener("click",p)}))}r.isPublishedPage&&setTimeout((function(){t_store_checkUrl(r,t)}),300),t_store_copyTypographyFromLeadToPopup(t,r)}function t_store_openProductPopup(t,e,r,o,n,i){var a=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"));a||t_store_open_popup_routing_init(t,e);var s=e.showRelevants,c,l=document.getElementById("rec"+t).querySelector(".t-popup"),d,p;if(l&&t_store_drawProdPopup(t,l,r,e,i),t_store_showPopup(t,n,i),window.Tilda&&(Tilda.sendEcommerceEvent&&(window.tStoreDetailEvent||(window.tStoreDetailEvent={}),window.tStoreDetailEvent[r.id?r.id:r.uid]||(Tilda.sendEcommerceEvent("detail",[{id:""+(r.id?r.id:r.uid),uid:""+r.uid,price:""+(r.price_min?r.price_min:r.price),sku:r.sku?r.sku:"",name:r.title}]),window.tStoreDetailEvent[r.id?r.id:r.uid]=!0)),Tilda.sendEventToStatistics)){var u=l.getAttribute("data-track-popup");if(u){var _="Popup: "+r.title;Tilda.sendEventToStatistics(u,_,"",0)}}if(e.isPublishedPage&&!n&&t_store_changeUrl(t,r,o,e),s&&!a){var f,y={cc:"current_category",all:"all_categories"}[s]||"category_"+s,v="random",g=e.relevants_quantity||4;t_store_loadProducts("relevants",t,e,!1,{currentProductUid:r.uid,relevantsQuantity:g,relevantsMethod:y,relevantsSort:v})}("y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||t_store_popup_updLazyOnScroll(t),parseInt(r.quantity,10)<=0||"both"!==e.showStoreBtnQuantity&&"popup"!==e.showStoreBtnQuantity)||t_store_addProductQuantity(document.querySelector("#rec"+t+" .t-popup .js-store-product"),r,e);t_store_hoverZoom_init(t),e.itemsAnim&&e.previewmode&&setTimeout((function(){t_store_onFuncLoad("t_animate__setAnimationStateChains",(function(){var t=document.querySelectorAll(".r"),e=[];Array.prototype.forEach.call(t,(function(t){t.querySelector(".t-animate[data-animate-chain=yes]")&&e.push(t)})),e.length&&t_animate__setAnimationStateChains(e)}))}),300)}function t_store_addProductQuantity(t,e,r){var o=t,n=r||{};if(window.jQuery&&o instanceof jQuery){if(0===o.length)return;o=$(o).get(0)}var i=o.querySelector('.t-store__prod-popup__btn-wrapper a[href="#order"]:not(.t-store__prod-popup__btn_disabled)'),a=o.querySelector('.t-store__card__btns-wrapper a[href="#order"]:not([style*="display: none"])'),s=parseInt(e.quantity,10),c,l;if(isNaN(s)&&e.editions){var d=t_store_product_getFirstAvailableEditionData(e.editions);s=parseInt(d.quantity,10)}if((a||i)&&0!==s&&1!==s&&""!==n.showStoreBtnQuantity&&n.showStoreBtnQuantity){if("list"===n.showStoreBtnQuantity&&o.classList.contains("t-store__card")||"popup"===n.showStoreBtnQuantity&&o.classList.contains("t-store__product-snippet")||"popup"===n.showStoreBtnQuantity&&o.classList.contains("t-store__product-popup")||"both"===n.showStoreBtnQuantity){if(n||(n={}),(c=o.querySelector(".t-store__prod__quantity"))&&(l=c.querySelector(".t-store__prod__quantity-input")),c){var p=l.min||1;l.value=p,t_store_triggerEvent(l,"change");var u=l.value;isNaN(s)?c.classList.remove("t-store__prod-popup__btn_disabled"):s>1?(c.classList.remove("t-store__prod-popup__btn_disabled"),0===parseInt(u,10)&&(l.value=p)):c.classList.add("t-store__prod-popup__btn_disabled")}else{var _="",f=n.btn1_style,y=n.buttonRadius,v="";if(o.classList.contains("t-store__card")&&(v="","sm"===n.btnSize&&(v="t-store__prod__quantity_xs")),f&&"string"!=typeof y){var g=f.indexOf("border-radius");if(-1!==g){var m=f.slice(g).indexOf(";");y=f.slice(g+14,g+m)}}var h="";if(y&&(h="border-radius:"+y+";"),_+='
',_+='
',_+='',_+="
",_+='',_+='
',_+='',_+="
",_+="
",i?i.insertAdjacentHTML("beforebegin",_):a&&a.insertAdjacentHTML("beforebegin",_),t_store_addProductQuantityEvents(o),l=(c=o.querySelector(".t-store__prod__quantity")).querySelector(".t-store__prod__quantity-input"),a){var b=a.parentNode;if(b.classList.add("t-store__card__btns-wrapper--quantity"),b.querySelectorAll('a:not([href^="#order"])').length>0&&Element.prototype.matches.call(b.parentNode,"div[class]")){var w=b.parentNode,S=document.createElement("div");S.appendChild(b),w&&w.appendChild(S)}}}l&&(isNaN(s)?l.max=99999:s>0&&(l.max=s))}}else(c=o.querySelector(".t-store__prod__quantity"))&&(c.parentNode.classList.remove("t-store__card__btns-wrapper--quantity"),t_store__removeElement(c))}function t_store_addProductQuantityEvents(t){var e=t;if(window.jQuery&&e instanceof jQuery){if(0===e.length)return;e=e[0]}var r=e.querySelector(".t-store__prod__quantity");if(r){var o=r.querySelector(".t-store__prod__quantity-input"),n=function t(){o.stepDown()},i=e.querySelector(".t-store__prod__quantity__minus-wrapper");i&&(i.removeEventListener("click",n),i.addEventListener("click",n));var a=function t(){o.stepUp()},s=e.querySelector(".t-store__prod__quantity__plus-wrapper");s&&(s.removeEventListener("click",a),s.addEventListener("click",a));var c=function t(){var e=o.min||1,r=o.max||9999,n=parseInt(o.value||1,10);n<1||isNaN(n)?o.value=e:o.value=n>r?r:n},l=e.querySelector(".t-store__prod__quantity-input");l&&(l.removeEventListener("change",c),l.addEventListener("change",c))}}function t_store_removeProductQuantity(t){var e=t.querySelector('.t-store__prod-popup__btn-wrapper a[href="#order"]:not(.t-store__prod-popup__btn_disabled)'),r;if(t.querySelector('.t-store__card__btns-wrapper a[href="#order"]:not([style*="display: none"])')||e){var o=t.querySelector(".t-store__prod__quantity");o&&(o.parentNode.classList.remove("t-store__card__btns-wrapper--quantity"),t_store__removeElement(o))}}function t_store_open_popup_routing_init(t,e){window.onpopstate=function(){if(window.history.state)if(window.history.state.productData){var r=window.history.state.productData,o,n,i,a;t_store_openProductPopup(r.recid,r.opts,r.productObj,r.isRelevantsShow,!0)}else t_store_closePopup(!0,t,e);else t_store_closePopup(!0,t,e)}}function t_store_popup_updLazyOnScroll(t){var e=document.querySelector("#rec"+t+" .t-popup"),r=document.getElementById("allrecords").getAttribute("data-tilda-mode");e&&"edit"!==r&&"preview"!==r&&e.addEventListener("scroll",t_throttle((function(){t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))})))}function t_store_changeUrl(t,e,r,o){var n=/iPhone|iPad|iPod/i.test(navigator.userAgent),i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),a=window.location.href,s={productObj:e,opts:o,isRelevantsShow:r,recid:t},c,l=document.title+" – "+e.title;a.indexOf("/tproduct/")<0&&a.indexOf("%2Ftproduct%2F")<0?(t_store_history_pushState({productData:s},l,c=t_store_generateUrl(e)),n&&i&&(document.querySelector('head link[rel="canonical"]').setAttribute("href",c),document.title=l)):r&&t_store_history_pushState({productData:s},l,c=t_store_generateUrl(e))}function t_store_generateUrl(t){var e=window.location.protocol,r=window.location.host,o;return(o=(o=t.url.split("://")[1]).split("/")).shift(),e+"//"+r+"/"+(o=o.join("/"))}function t_store_drawProdPopup(t,e,r,o,n){e.scrollTop=0;var i=e.querySelector(".js-store-product.js-product");i.setAttribute("data-card-size","large"),t_store_drawProdPopup_drawGallery(t,e,r,o),window.tStoreDefPackObj||(window.tStoreDefPackObj={});var a=e.querySelector(".js-store-product");a.setAttribute("data-product-lid",r.uid),a.setAttribute("data-product-uid",r.uid),a.setAttribute("data-product-gen-uid",r.uid);var s=e.querySelector(".js-store-prod-name");r.title?(s.innerHTML=r.title,s.style.display=""):(s.innerHTML="",s.style.display="none");var c=[];try{c=JSON.parse(r.partuids)}catch(f){console.error(f)}if(a.setAttribute("data-product-part-uid",c.join(",")),o.linksSizeChart&&c.length>0){for(var l="",d=[],p=0;p',l+='',l+=o.linksSizeChart[u].infotext,l+="",l+="
",d.push(o.linksSizeChart[u].infourl))}e.querySelector(".t-store__prod-popup__links-wrapper").innerHTML=l}else e.querySelector(".t-store__prod-popup__links-wrapper").innerHTML="";t_store_initTextAndCharacteristics(e,r);var _=function a(){t_store_addProductOptions(t,r,i,o),t_store_option_handleOnChange(i),t_store_option_handleOnChange_custom(t,i,o),t_store_onFuncLoad("t_prod__initProduct",(function(){t_prod__initProduct(i,o)})),window.t_store_prodPopup_updateGalleryThumbsEvent=function(){t_store_prodPopup_updateGalleryThumbs(t,e,r,o)},n&&window.removeEventListener("resize",window.t_store_prodPopup_updateGalleryThumbsEvent),window.addEventListener("resize",window.t_store_prodPopup_updateGalleryThumbsEvent)};_(),o.tabs&&t_store_onFuncLoad("t_store_tabs_init",(function(){t_store_tabs_init(t,o,r,i,e,_)}))}function t_store_initTextAndCharacteristics(t,e){var r=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),o=t.querySelector(".js-store-prod-text");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.style.display="none"}var n=e.pack_label||"",i=parseInt(e.pack_m,10)||0,a=parseInt(e.pack_x,10)||0,s=parseInt(e.pack_y,10)||0,c=parseInt(e.pack_z,10)||0,l=e.url||"",d=n&&a&&s&&c,p=i,u=e.characteristics&&e.characteristics.length>0||d||p,_=!0,f=u,y;t.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="text"]').length&&(_=!1);var v=t.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="chars"]');v.length&&(f=!1);var g='";var m=_?"margin-top: 20px;":"",h='
",b="";if(u&&e.characteristics.forEach((function(t){b+='

'+t.title+": "+t.value+"

"})),b+='

',h+=b+='

',h+="
",o&&(o.insertAdjacentHTML("beforeend",g),o.insertAdjacentHTML("beforeend",h),o.style.display=""),r&&v.length&&Array.prototype.forEach.call(v,(function(t,e){var r=t.querySelector(".t-store__tabs__content");if(r){for(;r.firstChild;)r.removeChild(r.firstChild);r.insertAdjacentHTML("beforeend",b),0!==e&&(r.querySelector(".js-store-prod-dimensions").parentNode.style.display="")}})),d){var w=a+"x"+s+"x"+c,S=window.tStoreDict["product-"+n]+": "+w+" "+window.tStoreDict.mm,E=t.querySelector(".js-store-prod-dimensions");E&&(E.innerHTML=S),r&&(Array.prototype.forEach.call(v,(function(t){var e=t.querySelector(".js-store-prod-dimensions");e&&(e.innerHTML=S)})),t.setAttribute("data-product-pack-label",n),t.setAttribute("data-product-pack-x",a),t.setAttribute("data-product-pack-y",s),t.setAttribute("data-product-pack-z",c))}if(p){var P=window.tStoreDict["product-weight"]+": "+i+" "+window.tStoreDict.g;t.querySelector(".js-store-prod-weight").innerHTML=P,r&&(v.length&&Array.prototype.forEach.call(v,(function(t){var e=t.querySelector(".js-store-prod-weight");e&&(e.innerHTML=P)})),t.setAttribute("data-product-pack-m",i))}var A=t.querySelector(".js-store-product");r&&t.classList.contains("js-store-product")&&(A=t),A&&(A.setAttribute("data-product-pack-label",n),A.setAttribute("data-product-pack-m",i),A.setAttribute("data-product-pack-x",a),A.setAttribute("data-product-pack-y",s),A.setAttribute("data-product-pack-z",c),A.setAttribute("data-product-url",l))}function t_store_addProductOptions(t,e,r,o){var n=r;if(window.jQuery&&n instanceof jQuery){if(0===n.length)return;n=n[0]}var i=n.querySelector(".js-product-controls-wrapper");if(i){i.innerHTML="";var a=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),s=t_store_product_getFirstAvailableEditionData(e.editions),c,l;if(t_store_product_initEditions(t,e,n,o),e.prod_option||e.prod_option2||e.prod_option3||e.prod_option4||e.prod_option5)["",2,3,4,5].map((function(t){return{name:e["prod_option"+t],values:e["prod_variants"+t]}})).forEach((function(e){t_store_product_addOneOptionsControl("modificator",e,i,o,s,t)}));else e.properties&&e.properties.forEach((function(e){if("single"===e.params.type){var r;t_store_product_addOneOptionsControl("modificator",{name:e.title,values:e.values},i,o,s,t)}else{var n=t_store_product_getMultioptionCheckboxesEl(t,e);i.append(n)}}));if(a){t_store_option_handleOnChange(n);var d=n.closest(".t-records"),p=d&&d.getAttribute("id"),u=!n.closest(".t-store__relevants__container"),_;d&&u&&("t-header"!==p&&"t-footer"!==p)&&t_store_option_handleOnChange_custom(t,n,o)}}}function t_store_product_getMultioptionCheckboxesEl(t,e){var r=function t(e,r){var o;return'"},o,n=e.values.split("\n").reduce((function(t,e){var o=e.split("="),n=o[0],i=o[1];return t+r(n,i)}),""),i='
'+e.title+'
'+n+"
",a=document.createElement("div");return a.innerHTML=i,a}function t_store_get_control_option_html(t){var e="",r,o="",n=t.typo&&t.typo.descrColor?t.typo.descrColor:"";return e+='
',e+='
[[name]]
",e+='
',e+="
"}function t_store_get_control_editionOption_html(t,e){var r="",o,n="",i="",a=t.typo&&t.typo.descrColor?t.typo.descrColor:"";o=""!==(n+=""!==a?"color:"+a+";":"")?'style = "'+n+'"':"";var s,c=t_store_option_checkIfCustom(e)?' style="display: none;"':"";return e.params&&(e.params.view&&(i+=' data-view-type="'+e.params.view+'"'),e.params.hasColor?i+=' data-option-type="color"':i+=' data-option-type="regular"'),r+='
",r+='
[[name]]
",r+='
',r+="
"}function t_store_option_styleCustomControl(t,e,r,o,n){var i="",a=o.querySelector('.js-product-edition-option[data-edition-option-id="'+r.id+'"]');if(a){var s=r.params&&"select"===r.params.view,c=r.params&&r.params.hasColor&&!r.params.linkImage,l=r.params&&r.params.linkImage,d=r.values[0],p=t_store_option_getClassModificator(r,"select","t-product__option-variants"),u=t_store_option_getClassModificator(r,"select","t-product__option-item"),_=t_store_option_getClassModificator(r,"select","t-product__option-input"),f=t_store_option_getClassModificator(r,"select","t-product__option-checkmark"),y=t_store_option_getClassModificator(r,"select","t-product__option-title"),v,g,m;if(s){var h,b;if(i+='
',c)i+='";else if(l){var w;v=r.values[0],i+='
"}i+=''+d+"",i+="
",p+=" t-product__option-variants_hidden"}i+='
';for(var S=0;S',i+='",l&&r.imagesObj?i+='
':i+='
",i+=''+v+"",i+=""}i+="",a.insertAdjacentHTML("beforeend",i)}}function t_store_option_getColorValue(t,e){var r="#ffffff";for(var o in t){var n=t[o];if(n.value===e.toString()){r=n.color;break}}return r}function t_store_option_getClassModificator(t,e,r){if(!t)return"";var o=t.params,n=r+"_"+o.view;return o.hasColor&&o.linkImage?"filter"===e?(n=r+"_buttons",n+=" "+r+"_color"):n+=" "+r+"_image":o.hasColor?n+=" "+r+"_color":o.linkImage?n+=" "+r+"_image":n+=" "+r+"_simple",n}function t_store_checkUrl(t,e){var r=window.location.href,o=r.indexOf("/tproduct/");if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&o<0&&(o=r.indexOf("/tproduct/"))<0&&(o=r.indexOf("%2Ftproduct%2F")),o>=0){var n=(r=r.substring(o,r.length)).split("-");if(void 0===n[1])return;var i=n[1],a=document.getElementById("rec"+e),s=a.querySelector('.js-store-grid-cont [data-product-gen-uid="'+i+'"]'),c=a.querySelector(".t-popup");if(r.indexOf(e)>=0&&s){if(!c.classList.contains("t-popup_show")){var l=s.querySelector('[href^="#prodpopup"]');l&&l.click()}}else if(r.indexOf(e)>=0&&c){if(c.classList.contains("t-popup_show"))return;var d;if(!(document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")))){var p=function r(o){if("string"==typeof o&&"{"===o.substring(0,1)){var n;try{var a;n=JSON.parse(o).product}catch(s){console.error(s)}if(!n)return void console.error("Can't get product with uid = "+i+" in storepart = "+t.storepart);t_store_openProductPopup(e,t,n)}else console.error("Can't get product with uid = "+i+" in storepart = "+t.storepart)};t_store_loadOneProduct(e,t,i,p,(function(r){t_store_changeEndpoint(r,(function(){t_store_loadOneProduct(e,t,i,p)}))}))}}}}function t_store_showPopup(t,e,r){var o=document.getElementById("rec"+t),n=o.querySelector(".t-popup");t_store_resetNavStyles(t),t_store_triggerEvent(document.body,"popupShowed"),document.body.classList.add("t-body_popupshowed"),n.style.display="block";var i=n.scrollHeight>document.documentElement.clientHeight;i||(n.style.overflow="hidden"),setTimeout((function(){n.querySelector(".t-popup__container").classList.add("t-popup__container-animated"),n.classList.add("t-popup_show"),t_store_triggerEvent(document.body,"twishlist_addbtn"),t_store_popup_updateLazyLoad(),i?(n.scrollTop=0,t_store_triggerEvent(n,t_store_POPUP_SHOWED_EVENT_NAME)):setTimeout((function(){n.style.overflow="auto",t_store_triggerEvent(n,t_store_POPUP_SHOWED_EVENT_NAME)}),300)}),50),n.addEventListener(t_store_POPUP_SHOWED_EVENT_NAME,t_store_popup_updateLazyLoad),r||addPopupEvents(o,t)}function t_store_popup_updateLazyLoad(){"y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}function t_store_closePopupKeyDown(t){var e,r;document.body.classList.contains("t-zoomer__show")||(document.body.classList.contains("t-zoomer__active")||27===t.keyCode&&t_store_closePopup(!1))}function addPopupEvents(t){var e=function t(e){e.target===this&&t_store_closePopup(!1)};t.querySelector(".t-popup").removeEventListener("click",e),t.querySelector(".t-popup").addEventListener("click",e);var r=function t(){t_store_closePopup(!1)};Array.prototype.forEach.call(t.querySelectorAll(".t-popup__close, .js-store-close-text"),(function(t){t.removeEventListener("click",r),t.addEventListener("click",r)})),document.addEventListener("keydown",t_store_closePopupKeyDown);var o=30,n=200,i=t.querySelectorAll(".t-popup__close-opacity-scroll");if(i.length){var a=function t(e){var r=e.scrollTop(),a;a=r>=n?1:r<=o?0:r/n,i.style.backgroundClor="rgba(255,255,255,"+a+")"};t.querySelector(".t-popup").removeEventListener("scroll",a),t.querySelector(".t-popup").addEventListener("scroll",a)}}function t_store_resetNavStyles(t){var e=document.getElementById("rec"+t).querySelector(".t-popup__close");e.classList.contains("t-popup__close-solid")?e.style.backgroundColor="rgba(255,255,255,1)":e.classList.contains("t-popup__close-opacity-scroll")&&(e.style.backgroundColor="rgba(255,255,255,0)")}function t_store_closePopup(t,e,r){var o=e,n=r,i=/iPhone|iPad|iPod/i.test(navigator.userAgent),a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),s,c,l,d;if(document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))||t_store_closePopup_routing(),Array.prototype.forEach.call(document.querySelectorAll(".t-popup"),(function(t){var e=t.querySelector(".t-slds__item_active .t-slds__frame");e&&e.src&&-1!==e.src.indexOf("&enablejsapi=1")&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),t.classList.remove("t-popup_show")})),t_store_triggerEvent(document.body,"popupHidden"),document.body.classList.remove("t-body_popupshowed"),t)if(t_store_isQueryInAddressBar("tstore")){var p=decodeURI(window.location.hash).split("/"),u=p.indexOf("c")+1,_=p.indexOf("r")+1,f=p[_];c=-1!==p[u].indexOf("-")?p[u].slice(0,p[u].indexOf("-")):p[u],window.history.state&&((l=window.history.state.opts).storepart=c),t_store_isStorepartFromHistoryActive(c,o,n)||t_store_loadProducts("",f,l)}else t_store_isStorepartFromHistoryActive(n.storepart,o,n)||t_store_loadProducts("",o,n);else if(window.history.state&&window.history.state.productData)try{var y=window.urlBeforePopupOpen,v=window.titleBeforePopupOpen;t_store_history_pushState({storepartuid:c=(d=window.history.state.productData).opts.storepart,opts:n=d.opts,recid:o=d.recid},null,y),i&&a&&(document.querySelector('head link[rel="canonical"]').setAttribute("href",y),document.title=v)}catch(m){console.error(m)}o&&(document.getElementById("rec"+o).querySelector(".js-store-parts-switcher")&&!n.hideStoreParts&&t_store_setActiveStorePart(o),n.tabs&&t_store_onFuncLoad("t_store_tabs_videoClearFrame",(function(){t_store_tabs_videoClearFrame(o)})));var g=document.querySelector(".t-popup");setTimeout((function(){g.scrollTop=0,Array.prototype.forEach.call(document.querySelectorAll(".t-popup:not(.t-popup_show)"),(function(t){t.style.display="none"}))}),300),document.removeEventListener("keydown",t_store_closePopupKeyDown),window.removeEventListener("resize",window.t_store_prodPopup_updateGalleryThumbsEvent),t_store_triggerEvent(document.body,"twishlist_addbtn"),t_store_triggerEvent(g,t_store_POPUP_CLOSED_EVENT_NAME)}function t_store_isStorepartFromHistoryActive(t,e,r){var o=document.getElementById("rec"+e),n;return!(!r||r.storePartsArr)||!!t&&o.querySelector(".js-store-parts-switcher.t-active").getAttribute("data-storepartUid")===parseInt(t,10)}function t_store_closePopup_routing(){window.onpopstate=function(){var t;if(window.history.state){if(window.history.state.productData){var e=window.history.state.productData,r=e.recid,o=e.productObj,n=e.isRelevantsShow;t_store_openProductPopup(r,t=e.opts,o,n,!0)}if(window.history.state.storepartuid){var i=window.history.state.opts,a=window.history.state.recid;t.isPublishedPage=!0,t_store_loadProducts("",a,i)}}}}function t_store_applyContrastColorIfNecessary(t,e,r){var o;0===Math.abs(t_store_getLightnessColor(e)-t_store_getLightnessColor(r))&&(t.style.color=t_store_luma_rgb(r))}function t_store_copyTypographyFromLeadToPopup(t,e){var r=document.getElementById("rec"+t),o=r.querySelector(".js-store-grid-cont .js-store-prod-name"),n=r.querySelector(".js-store-grid-cont .js-store-prod-descr"),i=r.querySelector(".t-popup .t-popup__container"),a,s;if(i&&(a=i.style.backgroundColor),o){var c=o.getAttribute("style"),l=r.querySelector(".t-popup .js-store-prod-name"),d;if(l)if(l.setAttribute("style",t_store_removeSizesFromStylesLine(c)),a)t_store_applyContrastColorIfNecessary(l,e.typo.titleColor,a)}n&&(s=n.getAttribute("style")),!s&&e&&e.typo&&e.typo.descr&&(s=(s=e.typo.descr).replace("line-height:0;",""));var p=r.querySelector(".t-popup .js-store-prod-text"),u;p&&(p.setAttribute("style",t_store_removeSizesFromStylesLine(s)),a&&t_store_applyContrastColorIfNecessary(p,e.typo.descrColor,a))}function t_store_setProductNameStyles(t,e,r,o){var n=t.querySelector(".js-store-prod-name");if(n)if(r.title_typo)t_store_parseTypoStylesConfig(e,".t-store__prod-popup__name",r.title_typo,"js-store-title-typo-styles-"+e);else{var i=n.getAttribute("style"),a;if(n.setAttribute("style",t_store_removeSizesFromStylesLine(i)),o)t_store_applyContrastColorIfNecessary(n,r.typo.titleColor,o)}}function t_store_setProductDescriptionStyles(t,e,r,o){var n=t.querySelector(".js-store-prod-text");if(n)if(r.descr_typo)t_store_parseTypoStylesConfig(e,".t-store__prod-popup__text",r.descr_typo,"js-store-descr-typo-styles-"+e);else{var i=n.getAttribute("style"),a;if(n.setAttribute("style",t_store_removeSizesFromStylesLine(i)),o)t_store_applyContrastColorIfNecessary(n,r.typo.descrColor,o)}}function t_store_setProductPriceStyles(t,e,r,o){var n=t.querySelector(".js-store-prod-price"),i;n&&(r.price_typo?t_store_parseTypoStylesConfig(e,".t-store__prod-popup__price",r.price_typo,"js-store-price-typo-styles-"+e):o&&t_store_applyContrastColorIfNecessary(n,r.price.color,o))}function t_store_setProductOldPriceStyles(t,e,r,o){var n=t.querySelector(".js-store-prod-price-old"),i;n&&(r.price_old_typo?t_store_parseTypoStylesConfig(e,".t-store__prod-popup__price_old",r.price_old_typo,"js-store-old-price-typo-styles-"+e):o&&t_store_applyContrastColorIfNecessary(n,r.price.colorOld,o))}function t_store_setProductOptionsStyles(t,e){if(e.options_typo){if(t_store_parseTypoStylesConfig(t,".t-product__option-title",e.options_typo,"js-store-options-title-typo-styles-"+t),e.descr_typo)try{var r=JSON.parse(e.descr_typo).color,o;if(r)t_store_createСssStyleTag("js-store-options-title-color-rewrite-typo-styles-"+t,"#rec"+t+" .t-product__option-title { color: "+r+"; }")}catch(n){console.error("Error when parse descr_typo config",n)}t_store_parseTypoStylesConfig(t,".t-product__option-select",e.options_typo,"js-store-options-typo-styles-"+t)}}function t_store_setProductCharacteristicsStyles(t,e,r){var o;t.querySelector(".js-store-prod-all-charcs")&&r.characteristics_typo&&t_store_parseTypoStylesConfig(e,".t-typography__characteristics",r.characteristics_typo,"js-store-characteristics-typo-styles-"+e)}function t_store_setProductBrandStyles(t,e,r){var o;t.querySelector(".js-product-brand")&&r.sku_typo&&t_store_parseTypoStylesConfig(e,".t-store__prod-popup__brand",r.sku_typo,"js-store-brand-typo-styles-"+e)}function t_store_setProductSkuStyles(t,e,r){var o;t.querySelector(".js-store-prod-sku")&&r.sku_typo&&t_store_parseTypoStylesConfig(e,".t-store__prod-popup__sku",r.sku_typo,"js-store-sku-typo-styles-"+e)}function t_store_snippet_copyTypographyToSnippet(t,e){var r,o=document.getElementById("rec"+t).querySelector(".t-store__product-snippet"),n=e.popup_opts.containerBgColor;t_store_setProductNameStyles(o,t,e,n),t_store_setProductDescriptionStyles(o,t,e,n),t_store_setProductPriceStyles(o,t,e,n),t_store_setProductOldPriceStyles(o,t,e,n),t_store_setProductOptionsStyles(t,e),t_store_setProductCharacteristicsStyles(o,t,e),t_store_setProductBrandStyles(o,t,e),t_store_setProductSkuStyles(o,t,e)}function t_store_parseTypoStylesConfig(t,e,r,o){if(r&&o)try{var n=JSON.parse(r);if(!n||"object"!=typeof n)return;var i={},a={};Object.keys(n).forEach((function(t){var e=n[t];t_store_isEmptyValue(e)||(/_res_480$/.test(t)?a[t.replace(/_res_480$/,"")]=e:i[t]=e)}));var s=[],c=[],l={color:"color",fontsize:"font-size",lineheight:"line-height",fontweight:"font-weight",letterspacing:"letter-spacing",margintop:"margin-top",marginbottom:"margin-bottom",opacity:"opacity"};if(t_store_applyTypoConfig(i,s,l),t_store_applyTypoConfig(a,c,l),!s.length&&!c.length)return;var d="#rec"+t+" "+e,p="";s.length&&(p+=d+"{"+s.join("")+"}"),c.length&&(p+="\n@media screen and (max-width:480px){"+d+"{"+c.join("")+"}}"),t_store_createСssStyleTag(o,p)}catch(u){console.error("t_store_parseTypoStylesConfig error",u)}}function t_store_isEmptyValue(t){return null==t||""===t}function t_store_isPercentValue(t){return"string"==typeof t&&/%$/.test(t.trim())}function t_store_percentToFloat(t){if(t_store_isPercentValue(t)){var e=parseFloat(t);return isNaN(e)?"":(e/100).toString()}return t}function t_store_buildTextShadow(t){var e=t.shadowSize,r=t.shadowOpacity;if(!e||!r)return null;var o=t_store_percentToFloat(r),n=parseFloat(o);return isNaN(n)&&(n=1),"0 0 "+e+" rgba(0,0,0,"+n+")"}function t_store_applyTypoConfig(t,e,r){var o={shadowSize:null,shadowOpacity:null};Object.keys(t).forEach((function(n){var i=t[n];switch(n){case"uppercase":"uppercase"!==i&&"none"!==i||t_store_addRule(e,"text-transform",i);break;case"shadowsize":o.shadowSize=i;break;case"shadowopacity":o.shadowOpacity=i;break;case"opacity":t_store_addRule(e,r[n],t_store_percentToFloat(i));break;default:r[n]&&t_store_addRule(e,r[n],i)}}));var n=t_store_buildTextShadow(o);n&&t_store_addRule(e,"text-shadow",n)}function t_store_removeSizesFromStylesLine(t){var e,r;return t?t.split(";").filter((function(t){return!t.match(/(font-size|padding-(top|bottom)|line-height)/)})).join(";"):""}function t_store_drawProdPopup_drawGallery(t,e,r,o){var n=980,i="https://static.tildacdn."+t_store__getRootZone()+"/js/tilda-catalog-slds-1.0.min.js",a=e;if(window.jQuery&&a instanceof jQuery){if(0===a.length)return;a=a[0]}if(a){var s=a.querySelector(".js-store-prod-slider"),c;if(r.gallery)if(0!==(c="string"==typeof r.gallery?JSON.parse(r.gallery):r.gallery).length){var l=function e(){var s={recid:t,el_popup:a,product:r,options:o,galleryArr:c},l,d=window.isMobile||"ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit")?document.documentElement.clientWidth:window.innerWidth;if(o.galleryStyle&&d>n||o.popup_opts.mobileGalleryStyle&&d<=n)t_store__loadJSFile(i,(function(){t_onFuncLoad("t_store__initCustomGallery",(function(){t_store__initCustomGallery(s)}))}));else{if(o.galleryStyle){var p=a.querySelector(".t-store__prod-popup__info");p&&p.classList.remove("t-store__prod-popup__col_fixed")}t_store__initDefaultGallery(s)}};l(),window.t_store_drawProdPopup_resizeGalleryEvent&&window.removeEventListener("resize",window.t_store_drawProdPopup_resizeGalleryEvent),window.t_store_drawProdPopup_resizeGalleryEvent=function(){var t,e=window.isMobile||"ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit")?document.documentElement.clientWidth:window.innerWidth,r=".js-store-desktop-custom-gallery",i=".js-store-mobile-custom-gallery",a=o.galleryStyle||"",c,d,p=a&&-1!==["col1_fixed","col2_fixed"].indexOf(a)&&e>n,u,_=(o.popup_opts.mobileGalleryStyle||"")&&e<=n;if(o.galleryStyle&&e>=n||o.popup_opts.mobileGalleryStyle&&e'+t_store_svgVideoIcon(r)+"":"").replace("[[activeClass]]",0===e?"t-slds__bullet_active":"").replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(r,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt)),l+=g})),s=s.replace("[[slides]]",c),d&&(s=s.replace("[[bullets]]",l));var m=e.querySelector(".js-store-prod-slider");m&&(m.innerHTML=s),t_store_galleryVideoHandle(i);var h=".t-slds__arrow_container, .t-slds__bullet_wrapper, .t-slds__thumbsbullet-wrapper",b=e.querySelectorAll(h),w;b&&(1===o.length?Array.prototype.forEach.call(b,(function(t){t.style.display="none"})):Array.prototype.forEach.call(b,(function(t){t.style.display=""}))),"l"===r.sliderthumbsside&&(w={thumbsbulletGallery:!0,storeOptions:r}),setTimeout((function(){t_store_onFuncLoad("t_sldsInit",(function(){t_sldsInit(i+" .js-store-product",w),t_store__addSlideChangeListener(i);var t=t_store_product_detectEditionByControls(e,n);t&&t_store_product_updateEdition_moveSlider(i,e,t)}))}),200)}}}}}function t_store_galleryVideoHandle(t){var e=document.getElementById("rec"+t);if(e){var r=e.querySelectorAll(".t-slds__play_icon");Array.prototype.forEach.call(r,(function(t){t&&t.addEventListener("click",(function(){var t=this.parentNode,r=t.querySelector(".t-slds__frame-wrapper");r||((r=document.createElement("div")).classList.add("t-slds__frame-wrapper"),this.insertAdjacentElement("afterend",r)),r.style.zIndex=3;var o=this.getAttribute("data-slider-video-type"),n=this.getAttribute("data-slider-video-url"),i=this.getAttribute("data-slider-video-hash"),a=this.getAttribute("data-slider-video-time"),s=this.getAttribute("data-slider-video-params"),c,l=t_store__getVideoElement(o,{videoId:n,videoHash:i,videoTime:a,vkOID:this.getAttribute("data-slider-video-oid"),videoParams:s});if(l){r.innreHtml="",r.appendChild(l);var d=function t(){l.remove(),r.style.zIndex=""};document.addEventListener("popupHidden",d,{once:!0});var p=e.querySelector(".t-slds__items-wrapper");p&&p.addEventListener("slideChangeStart",d,{once:!0});var u=t.closest(".js-product");u&&u.addEventListener("tStoreVariantChange",d,{once:!0})}}))}))}}function t_store__getVideoElement(t,e){if(!t)return null;var r=e.videoId,o=e.videoHash,n=e.videoTime,i=e.vkOID,a=e.videoParams,s,c,l={youtube:{baseUrl:"https://www.youtube.com/embed/"+r,params:["rel=0","fmt=18","html5=1","showinfo=0","autoplay=1","muted=1","enable",n&&"start="+n]},vimeo:{baseUrl:"https://player.vimeo.com/video/"+r,params:["title=0","byline=0","portrait=0","badge=0","color=ffffff","autoplay=1","muted=1",o&&"h="+o],hashtag:n?"#t="+n:""},kinescope:{baseUrl:"https://kinescope.io/embed/"+r,params:["autoplay=1","muted=1",n&&"t="+n]},rutube:{baseUrl:"https://rutube.ru/embed/"+r,params:["autoplay=1","muted=1",n&&"t="+n,o&&"p="+o]},vk:{baseUrl:"https://vk.com/video_ext.php",params:["js_api=1","hd=2","autoplay=1","muted=1","id="+r,"oid="+i,o&&"hash="+o,n&&"t="+n]}}[t.replace(/\.com/,"")];if(!l)return null;var d=l.baseUrl,p=l.params,u=l.hashtag,_=void 0===u?"":u,f,y;return a&&p.push(a),v(d+"?"+p.filter((function(t){return t})).join("&")+_);function v(t,e){var r=document.createElement("iframe");for(var o in r.src=t,r.classList.add("t-slds__frame"),r.width="100%",r.height="100%",r.frameBorder="0",r.allowFullscreen=!0,r.setAttribute("mozallowfullscreen","true"),r.setAttribute("msallowfullscreen","true"),r.setAttribute("oallowfullscreen","true"),r.setAttribute("webkitallowfullscreen","true"),r.scrolling="no",r.allow="clipboard-write; autoplay; fullscreen; picture-in-picture; encrypted-media; gyroscope; accelerometer;",e)e.hasOwnProperty(o)&&r.setAttribute(o,e[o]);return r}}function t_store_addVideoIconForGallery(t,e){var r="",o=e.video;if(o){var n=e.videoid,i=void 0===n?"":n,a=e.vtype,s=void 0===a?"":a,c=e.vhash,l=void 0===c?"":c,d=e.vtime,p=void 0===d?"":d,u=e.void||"",_="";"youtube.com"===e.vtype&&-1!==o.indexOf("?v="+e.videoid)&&-1!==(_=(_=o.split("?v="+e.videoid)[1]).replace(/&/g,"&")).indexOf("loop=1")&&-1===_.indexOf("&playlist=")&&(_+="&playlist="+e.videoid),r+='\n
\n
\n '+t_store_svgVideoIcon(t)+'\n
\n
\n
'}return r}function t_store_svgVideoIcon(t){var e="",r;return e+='',e+='',e+='',e+='',e+="",e+="",e+=""}function t_store_prodPopup_updateGalleryThumbs(t,e,r,o){var n=document.getElementById("rec"+t),i,a;if(!("thumbs"===o.slider_opts.controls||"arrowsthumbs"===o.slider_opts.controls)&&"l"===o.sliderthumbsside&&r.gallery){i="string"==typeof r.gallery?JSON.parse(r.gallery):r.gallery;var s=e.querySelector(".js-store-prod-slider");if(0!==i.length){var c=parseInt(o.popup_opts.columns,10),l=+o.slider_slidesOpts.ratio,d=60,p=10,u=n.querySelectorAll(".t-slds__thumbsbullet").length,_=t_store_prodPopup_gallery_calcMaxThumbsCount(c,l,d,p),f,y,v,g,m;if(u!==_&&i.length>=_||u<_&&u!==i.length)Array.prototype.forEach.call(i,(function(t,e){e<=_-1&&(e<=_-2||e===i.length-1?(y=t_store_get_productcard_oneSliderBullet_html(o),v=y.replace("[[videoPlayIcon]]","").replace("[[activeClass]]",0===e?"t-slds__bullet_active":"").replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt))):(y=t_store_get_productcard_thumbsGallery_html(o,i.length,_),v=y.replace("[[activeClass]]",0===e?"t-slds__bullet_active":"").replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt))),f+=v)})),n.querySelector(".t-slds__thumbsbullet-wrapper").innerHTML=f,"l"===o.sliderthumbsside&&(m={thumbsbulletGallery:!0,storeOptions:o}),t_sldsInit(t+" .js-store-product",m),t_store_popup_updateLazyLoad()}else s&&(s.innerHTML="")}}function t_store_prodPopup_gallery_calcMaxThumbsCount(t,e,r,o){var n=t_store_getColumnWidth(t),i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;i>=960&&i<=1240&&(n=440);var a=Math.floor(100*e),s=Math.floor(a*(n-(r+o))/100),c=Math.floor(s/(r+o));return(r+o)*(c+1)-o<=s&&(c+=1),c}function t_store_get_productcard_slider_html(t,e){var r="",o="t-slds_animated-none",n="300";"fast"===e.slider_opts.anim_speed&&(o="t-slds_animated-fast"),"slow"===e.slider_opts.anim_speed&&(o="t-slds_animated-slow",n="500");var i="",a;if(("thumbs"===e.slider_opts.controls||"arrowsthumbs"===e.slider_opts.controls)&&"l"===e.sliderthumbsside&&(i="t-slds__thumbsbullets-with-gallery"),r+='","arrows"===e.slider_opts.controls||"arrowsthumbs"===e.slider_opts.controls||""===e.slider_opts.controls){var s,c=t.querySelector(".js-store-tpl-slider-arrows").innerHTML,l;c='
'+c+"
",r=r.replace("[[arrows]]",c)}else r=r.replace("[[arrows]]","");if("thumbs"===e.slider_opts.controls||"arrowsthumbs"===e.slider_opts.controls){var d='
[[bullets]]
';r=r.replace("[[bullets]]",d)}else r="dots"===e.slider_opts.controls||""===e.slider_opts.controls?r.replace("[[bullets]]",'
[[bullets]]
'):r.replace("[[bullets]]","");return r=r.replace("[[containerStyles]]",e.slider_opts.bgcolor?'style="background-color:'+e.slider_opts.bgcolor+';"':"").replace("[[noCycleClass]]",e.slider_opts.cycle?"":"t-slds__nocycle").replace("[[isCycled]]",e.slider_opts.cycle?"true":"false")}function t_store_get_productcard_oneSlide_html(t,e){var r="";return r+='
',r+='
',r+=' ',r+=' ',r+='
',r+='
',r+="
",r+="
",r+=t_store_addVideoIconForGallery(t,e),r+="
",r=(r+="
").replace("[[zoomAttrs]]",t.slider_slidesOpts.zoomable?'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"':"").replace("[[zoomClass]]",t.slider_slidesOpts.zoomable?"t-zoomable":"").replace("[[containClass]]","contain"===t.slider_slidesOpts.bgsize?"t-slds__bgimg-contain":"").replace("[[paddingBottomVal]]",100*t.slider_slidesOpts.ratio+"%")}function t_store_get_productcard_oneSliderBullet_html(t){var e="";if("thumbs"!==t.slider_opts.controls&&"arrowsthumbs"!==t.slider_opts.controls||(e+='
',e+=" [[videoPlayIcon]]",e+='
',e+='
',e+="
"),"dots"===t.slider_opts.controls||""===t.slider_opts.controls){e+='
',e+='
',e+="
";var r="";if(t.slider_dotsOpts.size){var o=parseInt(t.slider_dotsOpts.size,10);r+="width:"+(o=o>20?20:o)+"px;height:"+o+"px;"}if(t.slider_dotsOpts.bgcolor&&(r+="background-color:"+t.slider_dotsOpts.bgcolor+";"),t.slider_dotsOpts.bordersize){var n=t.slider_dotsOpts.bgcoloractive?t.slider_dotsOpts.bgcoloractive:"#222";r+="border: "+t.slider_dotsOpts.bordersize+" solid "+n+";"}e=e.replace("[[styles]]",""!==r?'style="'+r+'"':"")}return e}function t_store_get_productcard_thumbsGallery_html(t,e,r){var o="",n=e-r;if("thumbs"===t.slider_opts.controls||"arrowsthumbs"===t.slider_opts.controls){var i="t-slds__thumbsbullet t-slds__bullet t-slds__thumbs_gallery [[activeClass]]";t.slider_slidesOpts.zoomable&&(i+=" t-slds__thumbs_gallery-zoomable"),o+='
',o+='
',o+='
',o=(o+="
").replace("[[zoomAttrs]]",t.slider_slidesOpts.zoomable?'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"':"")}return o}function t_store_getLazyUrl(t,e){if(!t.isPublishedPage||"y"!==window.lazy)return e;if(-1===e.indexOf("static.tildacdn."+t_store__getRootZone()))return e;var r=e.split("/");return r.splice(e.split("/").length-1,0,"-/resizeb/x20"),r.join("/")}function t_store_getLazySrc(t,e){if(!t.isPublishedPage||"y"!==window.lazy)return e;if(-1===e.indexOf(".tildacdn.com")||-1!==e.indexOf("-/empty/")||-1!==e.indexOf("-/resize/"))return e;var r=e.split("/");return r.splice(e.split("/").length-1,0,"-/empty"),r.join("/")}function t_store_dict(t){return window.tStoreDict||t_store_getDictObj(),window.tStoreDict[t]||'Text not found for "'+t+'"'}function t_store_escapeQuote(t){if(!t)return"";var e={'"':""","'":"'"};return t.replace(/["']/g,(function(t){return e[t]}))}function t_store_product_initEditions(t,e,r,o){var n=r.querySelector(".js-product-controls-wrapper"),i;if(t_store_product_addEditionControls(e,n,o,t),t_store_product_selectAvailableEdition(t,e,r,o)){t_store_product_triggerSoldOutMsg(r,!1,o);var a=t_store_product_getFirstAvailableEditionData(e.editions);a&&t_store_addProductQuantity(r,a,o),t_store_product__verifyOptionConsisency(r,e),t_store_product_disableUnavaileOptions(r,e)}else t_store_product_triggerSoldOutMsg(r,!0,o),t_store_removeProductQuantity(r),t_store_product_disableUnavaileOptions(r,e);var s,c=document.getElementById("rec"+t).querySelector(".t-store");Array.prototype.forEach.call(r.querySelectorAll(".js-product-edition-option"),(function(n){n.addEventListener("change",(function(){var n=t_store_product_detectEditionByControls(r,e),i=!0;if(n){t_store_product_updateEdition(t,r,n,e,o,i),t_prod__updatePrice(r,o);var a=parseInt(n.quantity,10)<=0;t_store_product_triggerSoldOutMsg(r,a,o),a?t_store_removeProductQuantity(r):t_store_addProductQuantity(r,n,o),window.Tilda&&Tilda.sendEcommerceEvent&&(window.tStoreDetailEvent||(window.tStoreDetailEvent={}),window.tStoreDetailEvent[n.id?n.id:n.uid]||(Tilda.sendEcommerceEvent("detail",[{id:""+(n.id?n.id:n.uid),uid:""+n.uid,price:""+(n.price_min?n.price_min:n.price),sku:n.sku?n.sku:"",name:e.title}]),window.tStoreDetailEvent[n.id?n.id:n.uid]=!0))}else{for(var s=this.getAttribute("data-edition-option-id"),l=[],d=0;d0?t_store_product_getFirstAvailableEditionData_forCertainVals(e.editions,n,r):t_store_product_getFirstAvailableEditionData(e.editions);if(!a)return console.error("No available edition for uid = "+e.uid+" with selected options values"),!1;var s=document.getElementById("allrecords"),c=s&&"edit"===s.getAttribute("data-tilda-mode"),l=parseInt(a.quantity,10)>0||""===a.quantity,d=i;if(Array.prototype.forEach.call(e.editionOptions,(function(t){var e=a[t.name],n=t_store_product_getEditionSelectEl(r,t);if(n){var i=n.querySelector(".js-product-edition-option-variants"),s;function l(t,e,r){var n;t.querySelectorAll(".t-product__option-item").forEach((function(t){var n=t.querySelector(".t-product__option-input");if(n){var i=(e||"").replace(/&/g,"&");n.value===i?(t.classList.add("t-product__option-item_active"),setTimeout((function(){n.checked=!0,r||n.click()})),o.prodCard&&o.prodCard.showOpts&&(d=!0)):(n.checked=!1,t.classList.remove("t-product__option-item_active"))}}))}i&&(i.value=(e||"").replace(/>/g,">").replace(/</g,"<").replace(/\/g,"\\"),o.prodCard&&o.prodCard.showOpts&&(d=!0)),n.querySelectorAll(".t-product__option-variants_custom").forEach((function(t){return l(t,e,c)}))}})),r.classList.contains("js-product-relevant"))t_store_product_updateEdition(t,r,a,e,o,d);else{var p,u=t_store_snippet_getJsonFromUrl().editionuid,_;u&&document.querySelector("#rec"+t+" .js-product").getAttribute("data-product-uid")!==u&&e.editions.forEach((function(t){t.uid===u&&(_=t)})),t_store_product_updateEdition(t,r,_||a,e,o,d)}return l}function t_store_product__verifyOptionConsisency(t,e){var r=document.getElementById("allrecords"),o=r&&"edit"===r.getAttribute("data-tilda-mode"),n=[];e.editionOptions.length>0&&n.push(e.editionOptions[0]);for(var i=1;i").replace(/</g,"<"),n;if(!e.editions.some((function(e){var r;return(e[t.name]||"").replace(/>/g,">").replace(/</g,"<")===o&&"0"!==e.quantity}))){var i={};i[t.name]=o,window.tStoreDisabledOptionsList[r].push(i)}}))})),0===window.tStoreDisabledOptionsList[r].length&&delete window.tStoreDisabledOptionsList[r]}function t_store_product_updateEdition(t,e,r,o,n,i){var a=t_store_snippet_getJsonFromUrl();a.editionuid=parseInt(a.editionuid,10);var s=e,c=r,l,d,p,u;if(window.jQuery&&s instanceof jQuery&&(s=s[0]),c||o.editions.forEach((function(t){t.uid===a.editionuid&&(c=t)})),a.editionuid===c.uid&&(Array.prototype.forEach.call(document.querySelectorAll(".js-store-product"),(function(t){t.setAttribute("data-product-lid",c.uid),t.setAttribute("data-product-uid",c.uid),t.setAttribute("data-product-url",window.location),t.setAttribute("data-product-img",c.img)})),setTimeout((function(){t_store_product_updateEdition_moveSlider(t,s,c)}),200),Array.prototype.forEach.call(o.editionOptions,(function(t){var e=c[t.name],r=t_store_product_getEditionSelectEl(s,t);if(r){var o=r.querySelector(".js-product-edition-option-variants");o&&o.value!==e&&(o.value=(e||"").replace(/>/g,">").replace(/</g,"<"),setTimeout((function(){t_store_triggerEvent(o,"change")})))}}))),c.price&&0!==parseFloat(c.price)){var _=t_store__getFormattedPrice(n,c.price),f=t_store__getFormattedPriceRange(n,o);if(n.price){var y=n.price.priceRange;if(f&&"range"===y&&(_=f),f&&"from"===y){var v=t_store__getFormattedMinPrice(n,o);null!==v&&(_=v)}}s.querySelector(".js-store-prod-price-val").textContent=_,(l=s.querySelector(".js-store-prod-price"))&&(l.style.display="");var g=t_store__cleanPrice(c.price),m=s.querySelector(".js-product-price");if(m&&(m.setAttribute("data-product-price-def",g),m.setAttribute("data-product-price-def-str",g)),Array.prototype.forEach.call(s.querySelectorAll(".t-store__prod__price-portion"),(function(t){t_store__removeElement(t)})),o.unit&&o.portion>0){var h='
/';"1"!==o.portion&&(h+=+o.portion+" "),h+=window.tStoreDict[o.unit]+"
";var b=[".t-store__card__price-currency + .js-product-price",".t-store__card__price-currency + .js-store-prod-price-old-val",".js-product-price + .t-store__card__price-currency",".js-store-prod-price-old-val + .t-store__card__price-currency",".t-store__prod-popup__price-currency + .js-product-price",".js-product-price + .t-store__prod-popup__price-currency",".t-store__prod-popup__price-currency + .js-store-prod-price-old-val",".js-store-prod-price-old-val + .t-store__prod-popup__price-currency",".js-product-price-currency + .js-product-price",".js-product-price + .js-product-price-currency",".js-product-price-currency + .js-store-prod-price-old-val",".js-store-prod-price-old-val + .js-product-price-currency"];Array.prototype.forEach.call(s.querySelectorAll(b.join(",")),(function(t){t.insertAdjacentHTML("afterend",h)}))}}else(l=s.querySelector(".js-store-prod-price"))&&(l.style.display="none"),s.querySelector(".js-store-prod-price-val").textContent="",s.querySelector(".js-product-price").setAttribute("data-product-price-def",""),s.querySelector(".js-product-price").setAttribute("data-product-price-def-str",""),t_store__removeElement(s.querySelector(".t-store__prod__price-portion"));if(c.priceold&&"0"!==c.priceold&&t_store__cleanPrice(c.price)!==t_store__cleanPrice(c.priceold)){var w=t_store__getFormattedPrice(n,c.priceold);(d=s.querySelector(".js-store-prod-price-old"))&&(d.style.display=""),(p=s.querySelector(".t-store__card__price_old"))&&(p.style.display=""),(u=s.querySelector(".js-store-prod-price-old-val"))&&(u.innerHTML=w)}else(d=s.querySelector(".js-store-prod-price-old"))&&(d.style.display="none"),(p=s.querySelector(".t-store__card__price_old"))&&(p.style.display="none"),(u=s.querySelector(".js-store-prod-price-old-val"))&&(u.innerHTML="");var S=s.querySelector(".t-store__prod-popup__brand");o.brand&&o.brand>""&&S&&(1===S.querySelectorAll("span[itemprop=brand]").length?S.querySelector("span[itemprop=brand]").innerHTML=o.brand:S.innerHTML=''+o.brand+""),!o.brand&&S&&(S.style.display="none");var E=s.querySelector(".t-store__prod-popup__sku"),P=s.querySelector(".js-store-prod-sku"),A;c.sku?(P&&(P.innerHTML=c.sku),"large"===s.getAttribute("data-card-size")&&(P.style.display="",E&&(E.style.display=""))):(P&&(P.innerHTML="",P.style.display="none"),E&&(E.style.display="none")),s.setAttribute("data-product-inv",c.quantity),s.setAttribute("data-product-lid",c.uid),s.setAttribute("data-product-uid",c.uid),window.tStoreDefPackObj||(window.tStoreDefPackObj={});try{var C=window.tStoreDefPackObj[o.uid],j=s.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="chars"]'),x="",O,k;c.pack_x&&c.pack_y&&c.pack_z?(C||(C={pack_x:s.getAttribute("data-product-pack-x")||0,pack_y:s.getAttribute("data-product-pack-y")||0,pack_z:s.getAttribute("data-product-pack-z")||0,pack_label:s.getAttribute("data-product-pack-label")||o.pack_label||"lwh",pack_m:s.getAttribute("data-product-pack-m")||0},window.tStoreDefPackObj[o.uid]=C),s.setAttribute("data-product-pack-x",c.pack_x),s.setAttribute("data-product-pack-y",c.pack_y),s.setAttribute("data-product-pack-z",c.pack_z),s.setAttribute("data-product-pack-label",C.pack_label),O=c.pack_x+"x"+c.pack_y+"x"+c.pack_z,k=s.querySelector(".js-store-prod-dimensions"),x=window.tStoreDict["product-"+C.pack_label]+": "+O+" "+window.tStoreDict.mm,k&&(s.querySelector(".js-store-prod-dimensions").innerHTML=x)):C&&C.pack_x&&(s.setAttribute("data-product-pack-x",C.pack_x),s.setAttribute("data-product-pack-y",C.pack_y),s.setAttribute("data-product-pack-z",C.pack_z),s.setAttribute("data-product-pack-label",C.pack_label),O=C.pack_x+"x"+C.pack_y+"x"+C.pack_z,x=window.tStoreDict["product-"+C.pack_label]+": "+O+" "+window.tStoreDict.mm,(k=s.querySelector(".js-store-prod-dimensions"))&&(k.innerHTML=x)),x&&Array.prototype.forEach.call(j,(function(t){var e=t.querySelector(".js-store-prod-dimensions");e&&(e.innerHTML=x)}));var L="",q;c.pack_m?(s.setAttribute("data-product-pack-m",c.pack_m),L=window.tStoreDict["product-weight"]+": "+c.pack_m+" "+window.tStoreDict.g,(q=s.querySelector(".js-store-prod-weight"))&&(q.innerHTML=L)):C&&parseFloat(C.pack_m)>0&&(s.setAttribute("data-product-pack-m",C.pack_m),L=window.tStoreDict["product-weight"]+": "+C.pack_m+" "+window.tStoreDict.g,(q=s.querySelector(".js-store-prod-weight"))&&(q.innerHTML=L)),L&&Array.prototype.forEach.call(j,(function(t){var e=t.querySelector(".js-store-prod-weight");e&&(e.innerHTML=L)}))}catch(T){console.error(T)}c.img?(s.setAttribute("data-product-img",c.img),"large"===s.getAttribute("data-card-size")?t_store_product_updateEdition_moveSlider(t,s,c):i&&t_store_get_productCard_img_replaceWith(o,s,n,c.img)):s.getAttribute("data-product-img")&&"large"===s.getAttribute("data-card-size")&&(t_store_product_updateEdition_moveSlider(t,s,c),s.setAttribute("data-product-img",""));o.unit&&o.portion>0?(s.setAttribute("data-product-unit",o.unit),s.setAttribute("data-product-portion",o.portion),s.setAttribute("data-product-single",o.single)):(s.removeAttribute("data-product-unit"),s.removeAttribute("data-product-portion"),s.removeAttribute("data-product-single"))}function t_store_product_updateEdition_moveSlider(t,e,r){if(e&&r&&r.img){var o=e.querySelector(".t-slds__items-wrapper");if(o){var n=1,i=parseInt(o.getAttribute("data-slider-totalslides"),10),a=r.img.replace(/&/g,"&"),s,c=Array.from(e.querySelectorAll(".t-slds__item")).find((function(t){var e=parseInt(t.getAttribute("data-slide-index")||"",10);return 0===e||e===i+1?null:t.querySelector('.t-slds__bgimg[data-original="'+a+'"]')}));if(!c&&a.includes(".com")){var l=function(){try{var t;return null==(t=new URL(a))?void 0:t.pathname}catch(e){return""}}();if(l&&"/"!==l){var d=e.querySelector('.t-slds__item .t-slds__bgimg[data-original$="'+l+'"]');d&&(c=d.closest(".t-slds__item"))}}if(-1!==a.indexOf("http://")||-1!==a.indexOf("https://"))try{var p,u=new URL(a).pathname;"/"===u[0]&&(u=u.slice(1).replace(/\//,"__"));var _=e.querySelector('.t-slds__item .t-slds__bgimg[data-original$="'+u+'"]');!c&&_&&(c=_.closest(".t-slds__item"))}catch(f){console.error(f)}c&&0===(n=parseInt(c.getAttribute("data-slide-index"),10))&&(n=i),o.setAttribute("data-slider-pos",n.toString()),e.classList.contains("t922")||t_store_onFuncLoad("t_slideMoveInstantly",(function(){t_slideMoveInstantly(t+" .js-store-product")}))}}}function t_store_product_triggerSoldOutMsg(t,e,r){var o=t;t_store__removeElement(o.querySelector(".js-store-prod-sold-out"));var n=o.querySelectorAll('.t-store__card__btns-wrapper [href="#order"], .t-store__prod-popup__btn-wrapper [href="#order"]');0===n.length&&(n=o.querySelectorAll('[href="#order"]')),window.jQuery&&o instanceof jQuery&&(o=$(o).get(0));var i=r.prodCard&&"order"===r.prodCard.btnLink1,a=r.prodCard&&"order"===r.prodCard.btnLink2,s;if(n[0]&&(s=n[0].querySelector(".js-store-prod-popup-buy-btn-txt"),"small"===o.getAttribute("data-card-size")&&(s=n[0].querySelector(".t-store__card__btn-text")),s||(s=n[0].querySelector(".js-store-prod-buy-btn-txt"))),e){var c=function t(){var e=o.querySelector(".js-store-price-wrapper");if(e){var r='
'+window.tStoreDict.soldOut+"
";e.insertAdjacentHTML("beforeend",r)}};n.length||c(),Array.prototype.forEach.call(n,(function(t){t.classList.add("t-store__prod-popup__btn_disabled")})),s&&(s.textContent=window.tStoreDict.soldOut),t_store_triggerEvent(o,"tStoreSoldOut",{product:t_store__collectProductDataByElement(o),buttonBuyElement:n[0],renderSoldOutMessage:c})}else{Array.prototype.forEach.call(n,(function(t){t.classList.remove("t-store__prod-popup__btn_disabled")}));var l=r.buyBtnTitle||r.popup_opts&&r.popup_opts.btnTitle||window.tStoreDict.addtocart;"small"===o.getAttribute("data-card-size")&&(i&&r.prodCard.btnTitle1&&(l=r.prodCard.btnTitle1),a&&r.prodCard.btnTitle2&&(l=r.prodCard.btnTitle2)),s&&(s.textContent=l),t_store_triggerEvent(o,"tStoreAvailable",{product:t_store__collectProductDataByElement(o),buttonBuyElement:n[0]})}}function t_store_product_addOneOptionsControl(t,e,r,o,n,i){if(e.name){var a,s,c,l="",d;if("modificator"===t){if(void 0===e.values)return null;s='';var p=e.values.split("\n");Array.prototype.forEach.call(p,(function(t){var e=t.split("=")[0],r=t.split("=")[1];l+=s.replace(/\[\[value\]\]/g,t_store_escapeQuote(e).replace(/&/g,"&amp;")).replace(/\[\[text\]\]/g,t_store_escapeQuote(e)).replace(/\[\[price\]\]/g,r||"")})),a=(c=t_store_get_control_option_html(o)).replace(/\[\[name\]\]/g,e.name).replace(/\[\[optiontags\]\]/g,l)}else s='',Array.prototype.forEach.call(e.values,(function(t){""!==t&&(l+=s.replace(/\[\[value\]\]/g,t_store_escapeQuote(t).replace(/&/g,"&amp;")).replace(/\[\[text\]\]/g,t_store_escapeQuote(t)))})),""!==l&&(a=(c=t_store_get_control_editionOption_html(o,e)).replace(/\[\[id\]\]/g,e.id.replace(/&/g,"&amp;").replace(/\/g,"&#92;")).replace(/\[\[name\]\]/g,e.name).replace(/\[\[optiontags\]\]/g,l));if(a&&r.insertAdjacentHTML("beforeend",a),t_store_option_checkIfCustom(e)&&t_store_option_styleCustomControl(i,o,e,r,n),"editionopt"===t){var u=r.querySelectorAll(".js-product-edition-option"),_,f=u[u.length-1];if(f)return f}}return null}function t_store_product_getEditionOptionsArr(t,e){var r=t.editions,o=["quantity","price","priceold","gallery","sku","uid","img","externalid","externalids","pack_x","pack_y","pack_z","pack_m"],n={},i=[];return r.forEach((function(t){Object.keys(t).forEach((function(t){-1!==o.indexOf(t)||n[t]||(n[t]=!0)}))})),Object.keys(n).forEach((function(o){var n={name:o,id:t_store_combineOptionIdByName(o),params:t_store_product_getEditionOptionsArr_getParams(o,t,e),values:t_store_product_getEditionOptionsArr_getValues(o,r),imagesObj:t_store_product_getEditionOptionsArr_getImgValues(o,r),valuesObj:e&&e[o]?e[o].values:{}};i.push(n)})),i}function t_store_product_getFirstAvailableEditionData(t){for(var e=0;e").replace(/</g,"<"),o&&c===e.length-1&&(p=o),a[l]!==p){s=!1;break}}if(s){if(0!==parseInt(a.quantity,10))return a;n||(n=a)}}if(n){var u;if(document.querySelector(".t1122"))return n;0===parseInt(n.quantity,10)&&(n="")}return n}function t_store_product_getCurEditionOptValById(t,e){var r=t.querySelector('.js-product-edition-option[data-edition-option-id="'+e+'"]');return r?r.querySelector(".js-product-edition-option-variants").value:""}function t_store_product_getEditionOptionsArr_getValues(t,e){var r=[];return e.forEach((function(e){var o=e[t];void 0!==o&&-1===r.indexOf(o)&&r.push(o)})),r=t_store_product_sortValues(r)}function t_store_product_sortValuesByOrder(t,e,r){return t.sort((function(t,o){var n="filter"===e?t.value:t,i="filter"===e?o.value:o;return n=n.toString().toUpperCase(),i=i.toString().toUpperCase(),r.indexOf(n)-r.indexOf(i)}))}function t_store_product_isSimpleOrderValid(t,e){return t.every((function(t){var r=t;return"object"==typeof r&&"string"==typeof r.value&&(r=r.value),"string"==typeof r&&(r=r.trim().toUpperCase(),e.indexOf(r)>=0)}))}function t_store_product_isDateOrderValid(t){var e=/(\d{2})\.(\d{2})\.(\d{4})/;return t.every((function(t){var r=t;return"object"==typeof r&&"string"==typeof r.value&&(r=r.value),"string"==typeof r&&(r=r.trim().toUpperCase()).match(e)}))}function t_store_product_sortValues(t,e,r){var o=t,n=o||[];if(o.length<2)return n;var i="filter"===e?o[0].value.toString():o[0].toString(),a="filter"===e?o[1].value.toString():o[1].toString(),s=["XXXS","3XS","XXS","2XS","XS","XS-S","S","S-M","M","M-L","L","L-XL","XL","XL-XXL","XXL","2XL","XXXL","3XL","XXXXL","BXL","4XL","BXXL","5XL","BXXXL","6XL","7XL","8XL","ONE SIZE","ОДИН РАЗМЕР","УНИВЕРСАЛЬНЫЙ"],c=["ПОНЕДЕЛЬНИК","MONDAY","ВТОРНИК","TUESDAY","СРЕДА","WEDNESDAY","ЧЕТВЕРГ","THURSDAY","ПЯТНИЦА","FRIDAY","СУББОТА","SATURDAY","ВОСКРЕСЕНЬЕ","SUNDAY"],l=["ЯНВАРЬ","ФЕВРАЛЬ","МАРТ","АПРЕЛЬ","МАЙ","ИЮНЬ","ИЮЛЬ","АВГУСТ","СЕНТЯБРЬ","ОКТЯБРЬ","НОЯБРЬ","ДЕКАБРЬ","JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],d,p,u,_,f,y,v={watt:["Вт","W","даВт","daW","гВт","hW","кВт","kW","мВт","mW","ГВт","GW","ТВт","TW","ПВт","PW"],bytes:["Кб","Кбайт","KiB","KB","Мбайт","Мб","MiB","MB","Mb","Гбайт","Гб","GiB","GB","Gb","Тбайт","Тб","TiB","TB"],weight:["мкг","mcg","мг","mg","г","g","кг","kg","т","t","ц"],length:["мкм","мм","mm","дм","dm","см","cm","м","m","км","km"],litre:["мл","л"],largeNums:["тыс","млн","млрд"]},g=r||o,m=/(\d{2})\.(\d{2})\.(\d{4})/;if(t_store_product_isSimpleOrderValid(g,s))n=t_store_product_sortValuesByOrder(n,e,s);else if(t_store_product_isSimpleOrderValid(g,c))n=t_store_product_sortValuesByOrder(n,e,c);else if(t_store_product_isSimpleOrderValid(g,l))n=t_store_product_sortValuesByOrder(n,e,l);else if(t_store_product_isDateOrderValid(g))n=o.sort((function(t,r){var o="filter"===e?t.value:t,n="filter"===e?r.value:r;return o=new Date(o.toString().replace(m,"$2/$1/$3").trim()),n=new Date(n.toString().replace(m,"$2/$1/$3").trim()),isNaN(o)||isNaN(n)?0:o-n}));else{try{n=o.sort((function(t,r){var o="filter"===e?t.value:t,n="filter"===e?r.value:r;if(o=o.toString().replace(/^(от|from)\s+/i,""),n=n.toString().replace(/^(от|from)\s+/i,""),o=parseFloat(o.toString().replace(",",".").trim()),n=parseFloat(n.toString().replace(",",".").trim()),isNaN(o)||isNaN(n))return 0;if(o===n){var i="filter"===e?t.value:t,a="filter"===e?r.value:r;i=i.toString().replace(/^(от|from)\s+/i,"").replace(",",".").trim(),a=a.toString().replace(/^(от|from)\s+/i,"").replace(",",".").trim();var s=/(\d+)\s?(x|х|×)\s?(\d+)/gi,c=i.match(s),l=a.match(s);return c&&l&&(i=c[2],a=l[2]),i>a?1:a>i?-1:0}return o-n}))}catch(E){console.error(E)}try{for(var h in v){var b=v[h],w=t_store_product_hasMeasureUnit(b,i)&&t_store_product_hasMeasureUnit(b,a),S=new RegExp(/^\d*,?\.?\d+\s*/,"gi");if(w)return n=n.sort((function(t,r){var o="filter"===e?t.value:t,n="filter"===e?r.value:r;return o=o.toString().replace(S,"").trim(),n=n.toString().replace(S,"").trim(),b.indexOf(o)-b.indexOf(n)}))}}catch(E){console.error(E)}}return n}function t_store_product_hasMeasureUnit(t,e){var r=e.replace(/\s/g,"");return t.some((function(t){var e,o;return new RegExp("^[\\d.,]+("+t+"){1}$","i").test(r)}))}function t_store_product_getEditionOptionsArr_getParams(t,e,r){var o={};if(r)o=r[t]?r[t].params:{};else try{var n=JSON.parse(e.json_options);n&&n.forEach((function(e){e.params&&e.title&&e.title===t&&(o=e.params)}))}catch(i){console.error(i)}return o}function t_store_product_getEditionOptionsArr_getImgValues(t,e){var r={};return e.forEach((function(e){var o=e[t];r[o]||(r[o]=e.img)})),r}function t_store_product_getEditionSelectEl(t,e){return t.querySelector('.js-product-edition-option[data-edition-option-id="'+e.id+'"]')}function t_store_combineOptionIdByName(t){return t.replace(/[\\'"<>{}]/g,"")}function t_store_getProductFirstImg(t){if(t.gallery&&"["===t.gallery[0]){var e=JSON.parse(t.gallery);if(e[0]&&e[0].img)return e[0].img}return""}function t_store__getFormattedPrice(t,e){if(null==e||""===e)return"";var r=t_store__cleanPrice(e);r=r.toString();var o=!1,n=!1,i;(t.currencyDecimal?o="00"===t.currencyDecimal:void 0!==window.tcart&&void 0!==window.tcart.currency_dec&&(o="00"===window.tcart.currency_dec),t.currencySeparator?n="."===t.currencySeparator:void 0!==window.tcart&&void 0!==window.tcart.currency_sep&&(n="."===window.tcart.currency_sep),o)&&(-1===r.indexOf(".")&&-1===r.indexOf(",")?r+=".00":1===r.substring(r.indexOf(".")+1).length&&(r+="0"));return r=(r=n?r.replace(",","."):r.replace(".",",")).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}function t_store__getFormattedMinPrice(t,e){var r=e.minPrice;return null!=r&&(r=t_store__getFormattedPrice(t,r)),r}function t_store__getFormattedPriceRange(t,e){if(!Object.prototype.hasOwnProperty.call(t,"prodCard")||t.prodCard.showOpts||!t.price.priceRange||""===t.price.priceRange||!Object.prototype.hasOwnProperty.call(e,"minPrice")||!Object.prototype.hasOwnProperty.call(e,"maxPrice"))return null;var r=e.minPrice,o=e.maxPrice;if(null===r||null===o||r===o)return null;r=t_store__getFormattedPrice(t,r),o=t_store__getFormattedPrice(t,o);var n=t.price.priceRange;return"range"===n?r+"—"+o:"from"===n?window.tStoreDict.from+" "+r:null}function t_store_loadMoreBtn_display(t){var e=document.getElementById("rec"+t);if(e){var r=e.querySelector(".t-store__load-more-btn-wrap"),o=e.querySelector(".js-store-grid-cont.t-store__grid-cont_mobile-one-row"),n=!!(window.innerWidth<960&&o);r&&r.classList.toggle("t-store__load-more-btn-wrap_hidden",n)}}function t_store_oneProduct_init(t,e){var r=document.querySelector("#rec"+t+" .js-store-product_single");if(r){var o=r.getAttribute("data-product-gen-uid");o=t_store_oneProduct_clearUid(o),r.setAttribute("data-product-gen-uid",o),window.tStoreIsSearchBot||t_store_oneProduct_preloader_add(t);var n=document.getElementById("allrecords").getAttribute("data-tilda-mode");e.isPublishedPage="edit"!==n&&"preview"!==n;var i=window.tStoreSingleProdsObj&&!e.previewmode;!window.tStoreSingleProductsIsRequested||i?(t_store_oneProduct_requestAllSingle(e),window.tStoreSingleProductsIsRequested=!0,r.addEventListener("tStoreSingleProductsLoaded",(function(){t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e)}))):window.tStoreSingleProdsObj?t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e):r.addEventListener("tStoreSingleProductsLoaded",(function(){t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e)}))}}function t_store_oneProduct_clearUid(t){return t.replace("product id: ","")}function t_store_oneProduct_preloader_add(t){var e=document.getElementById("rec"+t),r=e.querySelector(".js-store-product_single");if(r){var o=r.querySelector(".js-store-single-product-info");o.style.display="none",clearTimeout(e.getAttribute("data-preloader-timeout"));var n=setTimeout((function(){var t="";t+='",o.insertAdjacentHTML("beforebegin",t),t_store__fadeIn(r.querySelector(".t-store__single-prod-preloader"))}),1e3);e.setAttribute("data-preloader-timeout",n)}}function t_store_oneProduct_preloader_hide(t){var e=document.getElementById("rec"+t),r=e.querySelector(".js-store-product_single");if(r){clearTimeout(e.getAttribute("data-preloader-timeout"));var o=r.querySelector(".js-store-single-product-info");o&&(o.style.display="");var n=r.querySelector('a.t-btn[href="#order"]'),i=n?n.parentElement||n.parentNode:"";i&&(i.style.pointerEvents="inherit"),t_store__removeElement(r.querySelector(".t-store__single-prod-preloader"))}}function t_store_oneProduct_requestAllSingle(t){var e=document.querySelectorAll(".js-store-product_single"),r=[];Array.prototype.forEach.call(e,(function(t){var e=t.getAttribute("data-product-gen-uid");e=t_store_oneProduct_clearUid(e),r.push(e)}));var o=function t(r){var o=r.products;""!==o?(r.options&&r.options.length&&!window.tStoreOptionsList&&(window.tStoreOptionsList=r.options),window.tStoreSingleProdsObj=t_store_oneProduct_prodsArrToAssociative(o),Array.prototype.forEach.call(e,(function(t){t_store_triggerEvent(t,"tStoreSingleProductsLoaded")}))):console.error("Something went wrong. Can't get products array by uid list. Please check products UID.")};t_store_loadProducts_byId(r,t,o,(function(e){t_store_changeEndpoint(e,(function(){t_store_loadProducts_byId(r,t,o)}))}))}function t_store_oneProduct_prodsArrToAssociative(t){var e={};if(!t)return e;for(var r=0;r","success")}}function t_store_oneProduct_error_show(t,e){var r,o;e.previewmode||t_store_showMsgInRedactor(document.getElementById("rec"+t),"RU"===window.tStoreBrowserLang?"Не удается получить товар из каталога. Возможно он был удален или отключен. Пожалуйста, проверьте, что товар с таким ID существует.":"Can't find a product in the catalog. It may have been deleted or disabled. Please check that the product with this ID exists.","error")}function t_store_showMsgInRedactor(t,e,r){var o;t_store__removeElement(t.querySelector(".js-store-msg"));var n,i="success"===r?"#62C584":"yellow",a="";a+='
',a+='
',a+='
',a+=' ',a+="
",a+=e,a+="
",a+="
",t.insertAdjacentHTML("afterbegin",a)}function t_store_isQueryInAddressBar(t){var e;try{e=decodeURI(window.location.href)}catch(r){console.error(r),e=window.location.href}return!!e&&-1!==e.indexOf(t)}function t_store_getColumnWidth(t){var e,r,o;return{minWidth1200:{col_1:60,col_2:160,col_3:260,col_4:360,col_5:460,col_6:560,col_7:660,col_8:760,col_9:860,col_10:960,col_11:1060,col_12:1160},maxWidth1200:{col_1:60,col_2:140,col_3:220,col_4:300,col_5:380,col_6:460,col_7:540,col_8:620,col_9:700,col_10:780,col_11:860,col_12:940}}[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>1200?"minWidth1200":"maxWidth1200"]["col_"+t]}function t_store_option_getOptionsData(){var t=window.tStoreOptionsList;if(!t)return null;for(var e={},r=0;r7e3&&"function"!=typeof window[t]&&i(),setTimeout(n,r||100)):e()}))}}function t_store_hexToRgb(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=t.replace(e,(function(t,e,r,o){return e+e+r+r+o+o})),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),n=o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null;return o?[n.r,n.g,n.b]:null}function t_store_getFirstColorFromGradient(t){var e=/rgba\(\d+,\d+,\d+,\d+\)/gi,r=/(\d+),(\d+),(\d+)/i,o=t.match(e),n=o?o[0]:null,i=r.exec(n),a=i?{r:i[1],g:i[2],b:i[3]}:null;return i?[a.r,a.g,a.b]:null}function t_store_parsecolor(t){if(Array.isArray(t)&&3===t.length)return t;if(!t||"string"!=typeof t)return null;var e,r=/^var\((--uc-color-color-[a-zA-Z0-9]+),\s*(.+)\)$/.exec(t),o=t;if(r&&r[1]){var n=r[1],i;o=window.getComputedStyle(document.body).getPropertyValue(n)||r[2]}var a=/^rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+)(?:,\s*[0-9.%]+)?\)$/i.exec(o),s=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/i.exec(o),c,l;return a?a.splice(1).map((function(t){return parseInt(t,10)})):s?s.splice(1).map((function(t){return parseInt(t,16)})):null}function t_store_luma_rgb(t){var e="black",r=function t(e){return.2126*e[0]+.7152*e[1]+.0722*e[2]>128?"black":"white"},o=t_store_parsecolor(t);return o?r(o):e}function t_store_getLightnessColor(t){var e,r=(t_store_parsecolor(t)||[0,0,0]).map((function(t){return t/255}));return(Math.max.apply(Math,r)+Math.min.apply(Math,r))/2}function t_store_removeRgbOpacity(t){if(!t||!t.length)return null;var e=t.split(",");return e[3]&&(e[3]="1)"),e.join()}function t_store_snippet_getJsonFromUrl(){var t,e=window.location.search.substring(1),r={};return e.split("&").forEach((function(t){var e=t.split("=");try{r[e[0]]=decodeURIComponent(e[1])}catch(o){console.error(o),r[e[0]]=e[1]}})),r}function t_store__cleanPrice(t){var e=t;return e?(e=(e=e.toString()).replace(",",".").replace(/[^0-9.]/g,""),e=parseFloat(e).toFixed(2),isNaN(e)&&(e=0),e=parseFloat(e),(e*=1)<0&&(e=0)):e=0,e}function t_store__removeElement(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function t_store__fadeIn(t,e){if(("1"===getComputedStyle(t).opacity||""===getComputedStyle(t).opacity)&&"none"!==getComputedStyle(t).display)return!1;var r=0,o=e;o||(o=200);var n=(o=parseInt(o))>0?o/10:40;t.style.opacity=r,t.style.display="block";var i=setInterval((function(){t.style.opacity=r,(r+=.1)>=1&&clearInterval(i)}),n);return!0}function t_store__serializeData(t,e){var r=[];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var n=e?e+"["+o+"]":o,i=t[o],a;"{}"!==JSON.stringify(i)&&null!==i&&r.push(null!==i&&"object"==typeof i?t_store__serializeData(i,n):encodeURIComponent(n)+"="+encodeURIComponent(i))}return r.join("&")}function t_store_changeEndpoint(t,e){if(t&&(t.status>=500||408==t.status||410==t.status||429==t.status||"timeout"===t.type)&&-1!==window.t_store_endpoint.indexOf("store.tilda")){var r=t_store__getRootZone();window.t_store_endpoint="store2.tildaapi."+r,"function"==typeof e&&e()}else{var o;o=t&&t.responseText>""?"["+t.status+"] "+t.responseText:t&&t.statusText?"Error ["+t.status+", "+t.statusText+"]":"Error type ["+t.type+"]",console.error(o+". Please, try again later.")}}function t_store__handleRootzoneRedirect(t,e){var r,o=t;if("string"==typeof t)try{o=JSON.parse(t)}catch(s){return!1}var n=null==(r=o)?void 0:r.redirectto;if(!n)return!1;var i,a=t_store__getRootZoneFromEndpoint(e)!==n;return a&&(window.t_store_endpoint=window.t_store_endpoint.split(".").slice(0,-1).join(".")+"."+n),t_store__setRootZone(n),a}function t_store__getRootZoneFromEndpoint(t){var e=t.match(/\.([a-z]{2,})(?:[\/:]|$)/i);return e?e[1]:""}function t_store_paramsToObj(t,e){var r=window.location.search;try{r=r.replace(/%25/g,"%"),r=decodeURIComponent(r)}catch(d){console.error(d)}var o={otherParams:[]};o[t]={};try{r=r.replace(/&/g,"%26amp")}catch(p){console.error(p)}var n=r.slice(1).split("&"),i;(n=n.map((function(t){return t.replace(/%26amp/g,"&")})),o.otherParams=n.filter((function(t){var e;return!(/^tfc_/i.test(t)||/^s_/i.test(t))&&t})),-1!==window.location.href.indexOf("s_recid="))?window.location.href.split("s_recid=")[1].split("&")[0]===t&&n.splice(1).forEach((function(e){try{var r=/^s_/i.test(e),n;if(!document.querySelector("#rec"+t))return;if(o[t]||(o[t]={}),r){var i=e.replace(/^s_/i,"tfc_"),a=(i=i.replace(/%3A/gi,":")).split("="),s=a[0],c=a[1].replace(/\+/g," ").split(":::"),l=s.replace(/^tfc_/i,"");o[t][l]=o[t][l]?o[t][l].concat(c):c}}catch(p){console.error(p)}})):-1!==window.location.href.indexOf("tfc_")&&n.forEach((function(t){var e=t.split("=");try{var r;if(/^tfc_/i.test(t)&&"tfc_div"!==e[0]){var n=e[0],i;i=-1!==window.location.href.indexOf("tfc_div")?e[1].replace(/\+/g," ").replace(/%2B/g,"+").split(":::"):e[1].replace(/\+/g," ").split("%2B");var a=new RegExp(/\[\d.*\]$/,"gi"),s=n.match(a),c=s?Number(JSON.parse(s[0])):null,l;if(!c)return void console.error("Can't find recid in URL param");if(!document.querySelector("#rec"+c))return;var d=n.replace(a,"").replace("tfc_","");o[c]||(o[c]={}),o[c][d]=o[c][d]?o[c][d].concat(i):i}}catch(p){console.error(p)}}));window.tStoreCustomUrlParams=o,t_store_paramsToObj_updateUrl(o);var a=t_store_paramsToObj_getDefaultSort(t,e.defaultSort);for(var s in a){var c=a[s].sort,l=a[s].quantity;(c||l)&&(o[s]&&o[s].sort&&e.previewmode||c&&(o[s]||(o[s]={}),o[s].sort=c),o[s]&&o[s].quantity&&"object"==typeof o[s].quantity&&"y"===o[s].quantity[0]&&e.previewmode||l&&(o[s]||(o[s]={}),o[t].quantity||(o[s].quantity=["y"])))}return window.tStoreCustomUrlParams=o,o}function t_store_paramsToObj_updateUrl(t){var e=t_store_customURLParamsToString(t);window.location.hash&&(e+=window.location.hash);try{window.history.replaceState(null,null,encodeURI(e))}catch(r){console.error(r)}}function t_store_paramsToObj_getDefaultSort(t,e){var r=window.tStoreDefaultSort?window.tStoreDefaultSort:{};if(!e)return r;if(e.default){var o={"sort-price-asc":"price:asc","sort-price-desc":"price:desc","sort-name-asc":"title:asc","sort-name-desc":"title:desc","sort-created-asc":"created:asc","sort-created-desc":"created:desc"};r[t]||(r[t]={}),r[t].sort=new Array(o[e.default])}return e.in_stock&&(r[t]||(r[t]={}),r[t].quantity||(r[t].quantity=["y"])),window.tStoreDefaultSort=r,r}function t_store_customURLParamsToString(t){var e="",r="";for(var o in t){var n=t[o];if("otherParams"!==o)for(var i in n)try{var a=Array.isArray(n[i])?n[i].join("[[PLUS]]"):n[i].toString();a=(a=(a=(a=(a=(a=a.replace(/%/g,"%25")).replace(/#/g,"%23")).replace(/\+/g,"%2B")).replace(/\[\[PLUS\]\]/g,":::")).replace(/%26amp/g,"&")).replace(/\s/gi,"+"),e+=e.length?"&":"?",e+="tfc_"+i+"["+o+"]="+a}catch(s){console.error(s)}}return e&&(e+="&tfc_div=:::"),t.otherParams&&t.otherParams.length&&(t.otherParams.forEach((function(t){t.length&&(r+="&"+t)})),e=e.length?e+r:"?"+r.slice(1)),e.length?e:window.location.origin+window.location.pathname}function t_store_updateOptionsBasedOnUrl(t,e,r){try{var o=e[r];for(var n in t.filters={},o)if("sort"!==n){var i=-1!==n.indexOf("price:m")||-1!==n.indexOf("quantity");t.filters[n]=i?o[n].toString():o[n]}else{t.sort={};var a=o[n].join().split(":"),s=a[0],c=a[1];t.sort[s]=c}return t}catch(l){return console.error("something wrong in t_store_updateOptionsBasedOnUrl",l),null}}function t_store_snippet_chooseEditionFromUrl(t,e,r,o){try{var n,i=t_store_snippet_getJsonFromUrl().editionuid;if(i&&r.getAttribute("data-product-uid")!==i){console.info("show product by uid from url = "+i);var a="",s;if(e.editions.forEach((function(t){t.uid===parseInt(i,10)&&(a=t)})),!a)return;t_store_product_updateEdition(t,r,a,e,o),t_store_product_triggerSoldOutMsg(r,0===parseInt(a.quantity),o)}}catch(c){console.error("Error decode url:"+c)}}function t_store_moveSearhSort(t,e){var r=document.getElementById("rec"+t);if(r){var o=r.querySelector(".t-store__filter__search-and-sort");if(window.innerWidth>960&&o&&"none"===window.getComputedStyle(o).display&&(o.style.display=""),e.sidebar){var n=r.querySelector(".t-store__filter__controls-wrapper"),i=r.querySelector(".js-store-cont-w-filter");if(o){var a=o.parentNode.classList.contains("js-store-cont-w-filter");window.innerWidth<960?a&&(t_store__removeElement(o),n.insertAdjacentElement("beforeend",o)):a||(t_store__removeElement(o),i.insertAdjacentElement("afterbegin",o))}}}}function t_store_get_productCard_horizontalStructure(t,e,r,o,n,i){var a="";return(t.gallery[0]&&""!==t.gallery[0]||t.gallery[0]&&""!==t.gallery[0])&&r.prodCard&&r.prodCard.hasImg&&(a+='
"+o.open+t_store_get_productCard_img_html(t,r)+o.close+"
"),a+='
'+t_store_get_horizontalProductCard_txt_html(t,r,o,e,n,i)+t_store_get_horizontalProductCard_priceAndButtons(t,r,e,n,i)+"
"}function t_store_get_horizontalProductCard_txt_html(t,e,r,o){var n=t.title,i;e.isTitleClip&&(n=t.title.length>50?t.title.slice(0,50)+"...":t.title),t.title&&(i='
"+n+"
");var a="";t.descr&&e.prodCard&&e.prodCard.hasDescr&&(a='
"+t.descr+"
");var s="",c;return o.sku&&(s='"),'
'+r.open+i+r.close+a+s+'
'}function t_store_get_horizontalProductCard_priceAndButtons(t,e,r,o,n){var i=parseInt(e.rightColumnWidth,10),a=i?'style="width: '+i+'px;"':"",s;return'
"+t_store_get_productCard_Price_html(t,r,e)+t_store_get_productCard_btn_html(t,e,o,n)+"
"}function t_store_getDictObj(){var t={sku:{EN:"SKU",RU:"Артикул",FR:"UGS",DE:"SKU",ES:"SKU",PT:"SKU",UK:"Код товару",JA:"SKU",ZH:"SKU",PL:"SKU",KK:"SKU",IT:"SKU",LV:"SKU"},soldOut:{EN:"Out of stock",RU:"Нет в наличии",FR:"En rupture de stock",DE:"Ausverkauft",ES:"Agotado",PT:"Fora de estoque",UK:"Немає в наявності",JA:"在庫切れ",ZH:"缺货",PL:"Nie ma na stanie",KK:"Қорда жоқ",IT:"Esaurito",LV:"Nav noliktavā"},all:{EN:"All",RU:"Все",FR:"Tout",DE:"Alles",ES:"Todos",PT:"Todos",UK:"Всі",JA:"すべて",ZH:"所有",PL:"Wszystkie",KK:"Барлық",IT:"Tutti",LV:"Visi"},from:{EN:"from",RU:"от",FR:"de",DE:"von",ES:"de",PT:"de",JA:"から",ZH:"从",UK:"від",PL:"od",KK:"бастап",IT:"da",LV:"no"},emptypartmsg:{EN:"Nothing found",RU:"Ничего не найдено",FR:"Rien trouvé",DE:"Nichts gefunden",ES:"Nada encontrado",PT:"Nada encontrado",UK:"Нічого не знайдено",JA:"何も見つかりませんでした",ZH:"什么都没找到",PL:"Nic nie znaleziono",KK:"Ештеңе табылмады",IT:"Non abbiamo trovato nulla",LV:"Nekas nav atrasts"},seeotherproducts:{EN:"See other",RU:"Другие товары",FR:"Autres produits",DE:"Andere produkte",ES:"Otros productos",PT:"Outros produtos",UK:"Інші товари",JA:"その他の商品",ZH:"其他产品",PL:"Inne produkty",KK:"Басқа қараңыз",IT:"Vedi altri",LV:"Skatiet citas"},seeAlso:{EN:"See also",RU:"Смотрите также",FR:"Voir également",DE:"Siehe auch",ES:"Ver también",PT:"Veja também",UK:"Дивись також",JA:"また見なさい",ZH:"也可以看看",PL:"Patrz również",KK:"Сондай-ақ, қараңыз",IT:"Guarda anche",LV:"Skatīt arī"},addtocart:{EN:"Buy now",RU:"Купить",FR:"Acheter",DE:"Zu kaufen",ES:"Para comprar",PT:"Comprar",UK:"Купити",JA:"購入する",ZH:"要买",PL:"Kup",KK:"Қазір сатып Ал",IT:"Acquista ora",LV:"Pērc tagad"},loadmore:{EN:"Load more",RU:"Загрузить еще",FR:"Charger plus",DE:"Mehr laden",ES:"Carga más",PT:"Carregue mais",UK:"Завантажити ще",JA:"もっと読み込む",ZH:"裝載更多",PL:"Pokaż więcej",KK:"Тағы жүктеу",IT:"Carica ancora",LV:"Ielādēt vairāk"},PCE:{EN:"pc",RU:"шт",UK:"шт",KK:"шт"},NMP:{EN:"pack",RU:"уп",UK:"уп",KK:"уп"},MGM:{EN:"mg",RU:"мг",UK:"мг",KK:"мг"}},e={EN:"g",RU:"г",UK:"г",KK:"г"};t.g=e,t.GRM=e,t.KGM={EN:"kg",RU:"кг",UK:"кг",KK:"кг"},t.TNE={EN:"t",RU:"т",UK:"т",KK:"т"},t.MLT={EN:"ml",RU:"мл",UK:"мл",KK:"мл"},t.LTR={EN:"l",RU:"л",UK:"л",KK:"л"};var r={EN:"mm",RU:"мм",UK:"мм",KK:"мм"};t.mm=r,t.MMT=r,t.CMT={EN:"cm",RU:"см",UK:"см",KK:"см"},t.DMT={EN:"dm",RU:"дм",UK:"дм",KK:"дм"},t.MTR={EN:"m",RU:"м",UK:"м",KK:"м"},t.MTK={EN:"m²",RU:"м²",UK:"м²",KK:"м²"},t.MTQ={EN:"m³",RU:"м³",UK:"м³",KK:"м³"},t.LMT={EN:"lm",RU:"пог. м",UK:"пог. м",KK:"пог. м"},t.HAR={EN:"ha",RU:"га",UK:"га",KK:"га"},t.ACR={EN:"acre"},t.YRD={EN:"yd"},t.LBR={EN:"lb"},t.ONZ={EN:"oz"},t.INH={EN:"in"},t.FOT={EN:"ft"},t["product-lwh"]={EN:"LxWxH",RU:"ДxШxВ",DE:"LxBxH",ES:"PxLxK",UK:"ДxШxВ"},t["product-wht"]={EN:"WxHxT",RU:"ШxВxТ",FR:"LxHxÉ",DE:"BxHxD",ES:"LxKxP",PT:"LxAxE",UK:"ШxВxТ"},t["product-whd"]={EN:"WxHxD",RU:"ШxВxГ",FR:"LxHxP",DE:"BxHxT",ES:"LxKxS",PT:"LxAxP",UK:"ШxВxГ"},t["product-weight"]={EN:"Weight",RU:"Вес",FR:"Poids",DE:"Gewicht",ES:"Kaal",PT:"Peso",UK:"Вага",JA:"重さ",ZH:"機重",PL:"Waga",KK:"Салмақ",IT:"Peso",LV:"Svars"};var o=window.tStoreBrowserLang;window.tStoreDict||(window.tStoreDict={}),Object.keys(t).forEach((function(e){window.tStoreDict[e]=t[e][o]?t[e][o]:t[e].EN}))}function t_store_triggerEvent(t,e,r){var o;r&&window.CustomEvent?(o=new CustomEvent(e,{detail:r,bubbles:!0,cancelable:!1}),t.dispatchEvent(o)):document.createEvent?((o=document.createEvent("HTMLEvents")).initEvent(e,!0,!1),o.eventName=e,t.dispatchEvent(o)):document.createEventObject?((o=document.createEventObject()).eventType=e,o.eventName=e,t.fireEvent("on"+o.eventType,o)):t[e]?t[e]():t["on"+e]&&t["on"+e]()}function t_store__collectProductDataByElement(t){var e=t.querySelector(".js-product-name"),r=e?e.textContent.trim():"",o;r=t_store_escapeQuote(r);var n=t.querySelector(".js-product-price"),i;n&&(o=n.getAttribute("data-product-price-def")),o=t_store__cleanPrice(o);var a=t.getAttribute("data-product-img");if(a)i=a;else{var s=t.querySelector(".js-product-img");if(s){var c=s.getAttribute("data-original");c&&(i=c)}}var l=t.getAttribute("data-product-uid"),d=t.getAttribute("data-product-inv"),p;d=parseInt(d,10)||"";var u=t.querySelector(".js-store-prod-sku");u&&(p=t_store_escapeQuote(p=u.textContent.trim()));var _=t_store__collectOptionsByElement(t),f={name:r,price:o,uid:l,inv:d};return i&&(f.img=i),p&&(f.sku=p),_&&_.length>0&&(f.options=_),f}function t_store__collectOptionsByElement(t){var e=[],r=t.querySelectorAll(".js-product-edition-option");Array.prototype.forEach.call(r,(function(t){var r=t.querySelector(".js-product-edition-option-name").textContent,o=t.querySelector("option:checked");if(o){var n=o.value,i=o.getAttribute("data-product-edition-variant-price");if(i=parseFloat(i),r&&n){var a={};""!=r&&(r=t_store_escapeQuote(r)),""!=n&&(n=(n=t_store_escapeQuote(n)).replace(/(?:\r\n|\r|\n)/g,"")),r.length>1&&":"==r.charAt(r.length-1)&&(r=r.substring(0,r.length-1)),a.option=r,a.variant=n,a.price=i,e.push(a)}}}));var o=t.querySelectorAll(".js-product-option");Array.prototype.forEach.call(o,(function(t){var r=t.querySelector(".js-product-option-name").textContent,o=t.querySelector("option:checked");if(o){var n=o.value,i=o.getAttribute("data-product-variant-price");if(i=parseFloat(i),void 0!==r&&void 0!==n){var a={};""!=r&&(r=t_store_escapeQuote(r)),""!=n&&(n=(n=t_store_escapeQuote(n)).replace(/(?:\r\n|\r|\n)/g,"")),r.length>1&&":"==r.charAt(r.length-1)&&(r=r.substring(0,r.length-1)),a.option=r,a.variant=n,a.price=i,e.push(a)}}}));var n=t.querySelectorAll(".js-product-multioption");return Array.prototype.forEach.call(n,(function(t){var r=t.querySelectorAll('input[type="checkbox"]:checked');Array.prototype.forEach.call(r,(function(r){var o=t.querySelector(".js-product-option-name").textContent;o&&(o=t_store_escapeQuote(o)),o.length>1&&":"==o.charAt(o.length-1)&&(o=o.substring(0,o.length-1));var n=r.name;n&&(n=(n=t_store_escapeQuote(n)).replace(/(?:\r\n|\r|\n)/g,""));var i=r.getAttribute("data-product-variant-price");i&&(i=parseFloat(i));var a={option:o,variant:n,price:i};e.push(a)}))})),e}function t_store_fixedPopupButton(t,e){var r,o=document.getElementById("rec"+t);if(o){var n=130,i=90,a=560,s="t-store__prod-popup__btn-wrapper-fixed",c=null==e||null==(r=e.popup_opts)?void 0:r.containerBgColor,l=o.querySelectorAll(".t-store__prod-popup__btn-wrapper"),d;if(Array.prototype.forEach.call(l,(function(t){t.classList.add(s),c&&(t.style.background=c)})),!(document.getElementById("allrecords")!==o.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(o.querySelector(".t-store__product-snippet")))){var p=o.querySelector(".t-popup"),u=p.querySelector(".t-popup__container"),_=function t(){u.style.paddingBottom="220px",u.style.cssText+=";transform:none !important;"},f=function t(){u.style.paddingBottom="",u.style.transform=""},y=function t(){window.innerWidth>a?f():_()};window.isMobile&&window.addEventListener("orientationchange",y),p.addEventListener(t_store_POPUP_SHOWED_EVENT_NAME,(function(){setTimeout((function(){y()}),0)})),p.addEventListener(t_store_POPUP_CLOSED_EVENT_NAME,(function(){setTimeout((function(){f()}),0)})),window.addEventListener("resize",y)}}}function t_store__loadJSFile(t,e){if(document.querySelector('script[src^="'+t+'"]'))e&&e();else{var r=document.createElement("script");r.type="text/javascript",r.src=t,e&&(r.onload=e),r.onerror=function(t){console.error("Upload script error: "+t)},document.head.appendChild(r)}}function t_store__loadCSSFile(t,e){if(document.querySelector('link[href^="'+t+'"]'))e&&e();else{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.media="all",r.href=t,e&&(r.onload=e),r.onerror=function(t){console.error("Upload style error: "+t)},document.head.appendChild(r)}}function t_store__getRootZone(){return t_cart__useRootZone().getRootZone()}function t_store__setRootZone(t){t_cart__useRootZone().setRootZone(t)}function t_store__getSliderWrapper(t){return document.querySelector("#rec"+t+" .js-store-product .t-slds__items-wrapper")}function t_store__addSlideChangeListener(t){var e=t_store__getSliderWrapper(t);e&&e.addEventListener("slideChangeEnd",(function(){var t=e.querySelector(".t-slds__item_active");if(t&&"1"!==t.getAttribute("data-slide-index")){var r=t.querySelector(".t-slds__bgimg");r.classList.contains("t-bgimg")||r.classList.add("t-bgimg");var o=null==t?void 0:t.nextElementSibling;if(o){var n=o.querySelector(".t-slds__bgimg");n&&(n.classList.add("t-bgimg"),t_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()})))}}}))}t_onReady((function(){var t=document.getElementById("allrecords");if(t){var e=t.getAttribute("data-tilda-project-lang");e&&(window.tStoreBrowserLang=e);var r=t_store__getRootZone();window.t_store_endpoint="store.tildaapi."+r}t_store_getDictObj(),t_store_fixImgs()})),Array.prototype.some||(Array.prototype.some=function(t){"use strict";if(null===this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof t)throw new TypeError;for(var e=Object(this),r=e.length>>>0,o=arguments.length>=2?arguments[1]:void 0,n=0;n